I have just started learning python3 and I came across the following line of code :
a = 1
b = 2
a,b = b,a
print(a) #prints 2
print(b) #prints 1
How is this line a,b = b,a
working? Is Python automatically creating some temp variables? And what are the unseen possibilities? I mean, can I do the same for 3 or more variables in one line?