Find the Output of the following Python code
x = 5
y = 10
x, y = y, x
print( x)
print(y)
Answers
Answered by
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
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