On Wed, 2006-09-06 at 10:51 -0700, Omar wrote: > 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 >
Omar, The [code] and [/code] tags are markup to tell you where the code starts and stops. They are not python. Ignore them. Type the rest into the interpreter and see what happens. John Purser -- http://mail.python.org/mailman/listinfo/python-list