I think this is easily seen by a for loop:
for something in range(20):
    print something

In the above "something" is a variable, in this case an int(which is
immutable). However, "something" is changed every time it goes through the
loop.
It's the equivalent of:
x = 0
x = 1
x = 2
and so on
Just because an int is immutable, doesn't mean that you can't change the
"variable" that refers to it.

Hope that helps


--
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to