[EMAIL PROTECTED] wrote:
> list = ['f', 'e', 'd', 'c', 'b', 'a']
>
> How can i convert it into a string so the output is
>
> fedcba
print ''.join(list)
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
> I have a List
>
> list = ['f', 'e', 'd', 'c', 'b', 'a']
>
> How can i convert it into a string so the output is
>
> fedcba
>
> i used
>
> for a in list:
> print a,
>
> the output is
>
> f e d c b a
>
> How can i remove the spaces b/w each letter?
print "".
''.join['h','i']
[EMAIL PROTECTED] wrote:
> I have a List
>
> list = ['f', 'e', 'd', 'c', 'b', 'a']
>
> How can i convert it into a string so the output is
>
> fedcba
>
> i used
>
> for a in list:
> print a,
>
> the output is
>
> f e d c b a
>
> How can i remove the spaces b/w each letter?
>
I have a List
list = ['f', 'e', 'd', 'c', 'b', 'a']
How can i convert it into a string so the output is
fedcba
i used
for a in list:
print a,
the output is
f e d c b a
How can i remove the spaces b/w each letter?
--
* Posted with NewsLeecher v3.0 Beta 7
* http://www.newsleecher.co