CBSE Class 11 Computer Science
Question 121 of 173
Data Handling — Question 10
Back to all questions 10
Question Question 6b
What will be the output of following Python code?
x, y = 4, 8
z = x/y*y
print(z)Answer
Output
4.0
Explanation
z = x/y*y
⇒ z = 4/8*8
⇒ z = 0.5*8
⇒ z = 4.0