[Pythonmac-SIG] Whats the invalid syntax about
beegee beegee
beegee63 at gmail.com
Sun May 31 20:33:31 CEST 2009
Hello, I have a mac mini mac os 10.4.11 aquamacs 22.3.1.
I wrote this program (please see below) after i got a python prompt (this
was after starting the interpreter in aquamacs)
please suggest what could have gone wrong here why am i getting a syntax
error
some_list = [3,6,2,5]
i=1
while i < 3:
print some_list[i], ";"
i=i+1
print some_list[3]
>>> File "<stdin>", line 4
print some_list[3]
^
SyntaxError: invalid syntax
>>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20090601/434b64cc/attachment.htm>
More information about the Pythonmac-SIG
mailing list