Python Newbie
piterrr.dolinski at gmail.com
piterrr.dolinski at gmail.com
Sun Feb 24 19:08:06 EST 2013
> For example (I believe it's already been mentioned) "declaring" intX with some integer value does *nothing* to maintain
>
> X as an integer:
>
> --> intX = 32
>
> --> intX = intX / 3.0
>
> --> intX
>
> 10.6666666666
>
Yes I did see that it is possible to redefine the type of a variable. But I don't think I would ever do this intentionally; need to be really careful with Python.
Peter
More information about the Python-list
mailing list