John,
Try the following code .. hope this helps and solves your problem . I have run
in the interactive mode
>>> s=''
>>> a=[s,'12']
>>> print a
['', '12']
regards
Srinivas
--
http://mail.python.org/mailman/listinfo/python-list
John Forse wrote:
I need to convert an input string say '' to a list of the form
['' ,]. If I use list(stringname), I get ['x','x','x','x'] ;
list.join() is an error; and str.join() won't use lists. I do need the
comma after the string. Is there a simple solution?
Have you tried [st
John Forse wrote:
> I need to convert an input string say '' to a list of the form
> ['' ,]. If I use list(stringname), I get ['x','x','x','x'] ;
> list.join() is an error; and str.join() won't use lists. I do need the
> comma after the string. Is there a simple solution?
Suppose your inp
I need to convert an input string say '' to a list of the form
['' ,]. If I use list(stringname), I get ['x','x','x','x'] ;
list.join() is an error; and str.join() won't use lists. I do need
the comma after the string. Is there a simple solution?
Regards
John
--
http://mail.pytho