Displaying location, type and value for a sum : id « Buildin Function « Python






Displaying location, type and value for a sum

Displaying location, type and value for a sum
integer1 = 9
integer2 = 2

sum = integer1 + integer2    # assignment of sum
print "sum: ", id( sum ), type( sum ), sum

           
       








Related examples in the same category