Computer Science

What will be the output of following Python code?

x, y = 4, 8
z = x/y*y 
print(z)

Python

Python Data Handling

36 Likes

Answer

4.0

Working

    z = x/y*y
⇒ z = 4/8*8
⇒ z = 0.5*8
⇒ z = 4.0

Answered By

22 Likes


Related Questions