Computer Science, asked by amishara901, 8 months ago

i) Predict the output of the following python code:
X, y = 4,8
z = x/y * y
print(z)​

Answers

Answered by yash131104
7

Answer:

4

Explanation:

x=4

y=8

z=x/y*y

=4/8*8

=4/8*8/1

cross multiplication

=4*1/8*8

=4/16

=4

Attachments:
Answered by qwnerazzuri
0

Output:

4

Here,

x,y = 4,8   this means that x = 4 and y = 8.

now, z = x/y * y

⇒z = (4/8)*8

⇒z = (1/2)*8

⇒z = 4.

Similar questions