Computer Science, asked by harsimar5544, 5 months ago

Find the Output of the following Python code
x = 5
y = 10

x, y = y, x
print( x)
print(y)

Answers

Answered by jack4610
1

Answer:

10

5

Explanation:

in the statement x,y=y,x

the values of x and y got interchanged.

Hope it Helps !!

Answered by assthha161
3

Answer

10

5

Explanation

When code will run in Python it will provide value of x to y and vice versa and will print the value of x as 10 and y as 5

Similar questions