""" Purpose: demonstrate assignment only effects the variable being assigned """ # 3 assignment statements x = 10 y = x # the new value of y is the current value of x x = 20 # if x changes, y does not change # assignment statements will only change the target (on the left of the =) print( "x:", x ) print( "y:", y ) # after line 6, x = 10 y = 10 # on line 7, we have a new assignment statement for x # after line 7, x = 20 y = 10 # this works for python and that's what matters right now # things will get more complicated and things get weird but for normal variables # this will hold true for other languages