Piet van Oostrum wrote:
Another possibility, after Python-> start interpreter, is Python->Execute Buffer. For small snippets of code this may be easier,
but for complete programs the shell method may be better.

do check out ipython -- it' s a nice way to do this. I wonder if ipython can be the python shell for Aquamacs? That would be slick.

beegee beegee wrote:
please suggest what could have gone wrong here why am i getting a syntax error

I think you've got your answer, but I can't help myself. You really want to spell this more like:

some_list = [3,6,2,5]

for item in some_list:
    print item, ";"
print some_list[3]

or even better:

";".join([str(i) for i in some_list])

Welcome to the joy of Python!

-Chris


--
Christopher Barker, Ph.D.
Oceanographer

NOAA/OR&R/HAZMAT         (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception
_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to