items in an array

Renato renato.ramonda at gmail.com
Wed Apr 19 10:14:51 EDT 2006


>>> list_array = ['aaa','bbb','ccc']
>>> for item in list_array:
...     print item + ',',
...
aaa, bbb, ccc,


(notice the comma at the end of the print statement: this causes the
suppression of the automatic newline)

Is this what you need?

-- 
Renato Ramonda




More information about the Python-list mailing list