Re: Converting tuple to String
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Re: Converting tuple to String

From: Daniel Nogradi <nogradi@gmail.com>
Date: Sun Apr 30 2006 - 17:41:18 CEST

> 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?

Try

one_big_string = ''.join( xyz )
print one_big_string

Hope this helps.
Received on Mon May 1 00:47:25 2006