''' Purpose: considers how Python stores and keeps track of variables ''' # get inputs into proper form (string and integer) w = input( 'Enter a word: ' ) s = input( 'Enter an integer: ' ) n = int( s ) print() # check out info on w, s, and n w_type = type( w ) w_id = id( w ) s_type = type( s ) s_id = id( s ) n_type = type( n ) n_id = id( n ) # display what we found out print( w, 'is a', w_type, 'and stored at', w_id ) print( s, 'is a', s_type, 'and stored at', s_id ) print( n, 'is a', n_type, 'and stored at', n_id )