[Tutor] String to list conversion
Taylan Karaman
taylankaraman at gmail.com
Tue Feb 24 16:16:00 CET 2009
Hello,
I am a beginner. And I am trying to get a user input converted to a list.
print 'Enter your first name :'
firstname = raw_input()
So if the user input is
firstname = 'foo' ----------->should become-------->
firstlist['f','o','o']
thanks in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090224/d53d2773/attachment-0001.htm>
More information about the Tutor
mailing list