If we write a simple program in python as mentioned below, the variables get swapped
num1=5
num2=10
temp = num1
num1 = num2