Hi I'm learning FOR loop now, very easy too learn. But I get confused to
understand this code :
myList = [1,2,3,4]
for index in range(len(myList)):
myList[index] += 1
print myList
And the response is:
[2, 3, 4, 5]
Can you explain me as a newbie, how that code works ??
_______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
