easy question about join method
Jorge Godoy
jgodoy at gmail.com
Sun Aug 6 22:01:11 EDT 2006
"nephish" <nephish at gmail.com> writes:
> i have seen the join method before, mostly in this group and i want to
> get it a little better.
>
> if i have a list
>
> x = ['this','is','a','sentence','held','in','a','list']
>
> how can i make it print as a single string? or make a single string out
> of it ?
print ' '.join(x)
--
Jorge Godoy <jgodoy at gmail.com>
More information about the Python-list
mailing list