1a = 2
2b = 4
3print (a) # 2
4print (b) # 4
5# Now swap them
6# Hold one variable in c temporarily:
7c = b
8b = a
9a = c
10# Now delete variable c from memory:
11del c
12
13print (a) # 4
14print (b) # 2
1a = 5
2b = 6
3# now swp the variables
4a, b = b, a
5# to swap two variables you need an other string harder than the first one
6c = a # 5
7a = b # 6
8b = c # 5