0
What does this mean in Python?
x,y=y,x
3 Respostas
+ 6
it means that x gets the value of y and y gets the value of x.
+ 3
Switching two variables. You can also assign values to multiple variables:
a=2
b=3
c=5
Is equivalent to: a, b, c = 2, 3, 5
x,y=y,x