Help With Python

Kent Johnson kent3737 at yahoo.com
Wed Jan 26 11:32:37 EST 2005


Thomas Guettler wrote:
> # No comma at the end:
> mylist=[]
> for i in range(511):
>     mylist.append("Spam")

or just
mylist = ["Spam"] * 511

Kent

> print ", ".join(mylist)
> 
>  Thomas
> 



More information about the Python-list mailing list