Displaying location, type and value for an int

integer1 = raw_input( "Enter first integer:\n" )
integer1 = int( integer1 ) # convert the string to an integer
print "integer1: ", id( integer1 ), type( integer1 ), integer1
Related examples in the same category