Oops: difference in operation of string.join and ''.join
John Thingstad
john.thingstad at chello.no
Sun Oct 21 15:40:36 EDT 2001
>>> ''.join([x+y for x, y in zip('test', 'dust')])
'tdeusstt'
>>> import string
>>> string.join([x+y for x, y in zip('test', 'dust')])
'td eu ss tt'
What is this?
More information about the Python-list
mailing list