+ 3
changing value
a=10; b=20 not using new variable and changing a and b's value the result should be print(a,b) => 20 10
4 Answers
+ 14
a, b = b, a
+ 2
Swap parameters in the print function:
print(b,a)
=>20 10
+ 2
>>> a, b = 10, 20
>>> print((a, b)[::-1])
(20, 10)