Python zamień dwa elementy
a = 1
b = 2
# Swap a and b
a, b = b, a
Serious Panda
a = 1
b = 2
# Swap a and b
a, b = b, a
pos1, pos2 = 1, 3