+ 1

In python3. X what is the solutino of (8+4)/2

Basic Python

8th Jul 2020, 12:05 PM
Raju Baghel
Raju Baghel - avatar
3 odpowiedzi
+ 3
6.0 You can also self-check it in the code playground. And python 2.X is not supported after 1st January 2020.
8th Jul 2020, 12:12 PM
Arctic Fox
Arctic Fox - avatar
+ 2
6.0, 8+4 returns 12, and dividing it by 2 returns a float, 6.0
8th Jul 2020, 12:09 PM
Arnesh
Arnesh - avatar
- 2
solution will be 6 and code for it is below print((8+4)/2
8th Jul 2020, 12:08 PM
Abhijeet bhatt
Abhijeet bhatt - avatar