[Tutor] RE: Creating a list from a comma-seperated string.
Doug.Shawhan@gecits.ge.com
Doug.Shawhan@gecits.ge.com
Tue, 19 Mar 2002 14:46:16 -0500
[ I know this is probably very simple.
[ I have strings of comma-seperated text that I want to split into
lists.
[ split() of course, seperates every letter. How do I tell split()
to do it's business at the commas?
[ Thanks!
[Shawhan, Douglas (GEAE, GECC)]
...aaand the crowd says duh! : .split(',')
Of course, the answer popped into my head about 15 seconds after I
fired off the email. You can all go back to thinking about hard stuff now!
:-)