Computer Science, asked by hanaahsaadkhan, 1 year ago

Predict the output:
x,y=20,60
y,x,y=x,y-10,x+10
print(x,y)

Answers

Answered by vishchopra36
98

x=20,y=60

y-10=60-10=50

x+10=20+10=30

ptint(50,30)


hanaahsaadkhan: :)
Answered by GulabLachman
37

The output is 50 30

The first line assigns 20 to x and 60 to y.

So, we havethe values of x = 20 and y = 60.

Next, 'y-10' is assigned to variable x.

So, x = y - 10 = 60 - 10 = 50

Again 'x+10' is assigned to variable y.

So, y = x + 10 = 20 + 10

Next, the values of x and y are printed in order.

So, output is:

50 30

Similar questions