breaking a string

Michael Yuen myuen at acs2.acs.ucalgary.ca
Tue Oct 16 16:57:02 EDT 2001


I'm pretty new to this Python stuff and i'm trying to figure out how to 
break a string into it's component parts.

For example, if a line of text in a file is:
"Hello World!"

I want to enter that into my list as just ['Hello', 'World']
Can someone help me out?

Thanks,
M

--



More information about the Python-list mailing list