On Sunday 30 April 2006 17:32, Byte wrote: > Is their a command to convert a tuple to string? e.g. > > xyz = "Hello", "There" > print xyz > > Is their any way of getting print to see xyz as being one string > i.e. "Hello There" rather than "Hello" and "There", despite "Hello" > and "There" being, in reality, seperate?
Use the "join" method of strings: print ' '.join(xyz) -- Stefan -- http://mail.python.org/mailman/listinfo/python-list