string to list conversion

J

John Forse

I need to convert an input string say 'xxxx' to a list of the form
['xxxx' ,]. 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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,298
Messages
2,571,539
Members
48,274
Latest member
HowardKipp

Latest Threads

Top