Converting tuple to String
Tim Williams
tdw at tdw.net
Sun Apr 30 11:38:49 EDT 2006
On 30 Apr 2006 08:32:47 -0700, Byte <eoinrogers at gmail.com> wrote:
>
>
> 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?
>
>>> print " ".join(xyz)
Hello There
HTH :)
--
Tim Williams
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20060430/e0430e03/attachment.html>
More information about the Python-list
mailing list