"""
Jay Chen's Python for Finance
Ch2 Exercise 3
Assignment
"""
x = 3
y = 5

x = y  #Now you assign 5 to x
y = x 
 #Now you assign 5 to y. So both x and y carry 5. Swapping doesn't happen

"""
To formally swap the values, you can either create an intermediary 
to hold values or do the swap at the same time. 

"""
x = 3
y = 5

z = x
x = y
y = z

# Or

x = 3
y = 5

x,y = y,x