Hi
Everything in Python is treated as an object, so
i=5
i.imag
makes sense, i.e. the variable i has some associated methods. But why doesn't the following example work?
5.imag #error
One would think that it should work, since the integer "5" is an object just like the list "[1,2]":
[1,2].pop() #no error
Best,
Niles.