"Faheem" <[EMAIL PROTECTED]> wrote
If anyone is interested I found this while googling

answers= ['ask'.'tell','repeat','sell']

def unzip(answers): unzipped = "".join(answers) # if all items are strings
 unzipped = ", ".join(map(str, answers))
 unzipped = " ".join(str(v) for v in answers if v > 0)
return unzipped
will give the following

 ask tell repeat sell

But in this particular case so would

' '.join(answers)

wouldn't it?

Alan G.

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to