''' Purpose: considers the subltety of swapping variable values ''' # get and echo inputs reply = input( 'Enter two words: ' ) w1, w2 = reply.split() print( ) print( 'w1 =', w1 ) print( 'w2 =', w2 ) ### pause to think what has happened print(); input( 'Enter when ready: ' ); print() # swap the values of w1 and w2 ### pause to think what has happened # print results print( 'After swapping' ) print( 'w1 =', w1 ) print( 'w2 =', w2 )