""" Purpose: introduce type() and id() """ # get variable values reply = input( "Enter an in integer and a decimal: " ) n, x = reply.split() n = int( n ) x = float( x ) # investigate variables type_reply = type( reply ) type_n = type( n ) type_x = type( x ) id_reply = id( reply ) id_n = id( n ) id_x = id( x ) # display variable characteristics print() print( "reply:", reply, type_reply, id_reply ) print( "n:", n, type_n, id_n ) print( "x:", x, type_x, id_x )