Script Bug?
Omar
outstretchedarm at hotmail.com
Wed Sep 6 13:51:12 EDT 2006
okay,I'm going through this python tutorial, and according to the
tutorial, I can type this:
[code]
myList = [1,2,3,4]
for index in range(len(myList)):
myList[index] += 1
print myList
[/code]
however, in my IDLE python shell, when I type
[code]
>>> myList = [1,2,3,4]
>>> for index in range(len(myList)):[/code]
it just gives me a prompt
[code]
>>> [/code]
?
why doesn't it just bring me to line three? I need to have
persistence, cause little snags like these discourage me. I know I
need thicker skin to write code.
any advice is appreciated
More information about the Python-list
mailing list