easy question about join method
nephish
nephish at gmail.com
Sun Aug 6 22:13:19 EDT 2006
yep, easy enough
thanks
-shawn
Jorge Godoy wrote:
> "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