splitting strings into variables

lost lost at soul.net
Mon Apr 14 19:33:01 EDT 2003


hi there,
i've read about splitting strings, and can do
strname.split(delimeter)
but what i need is something like this:
strname = hello:there
strname.split(":")
print strname
hello

so :there is taken away, and i just have hello?  how can i do that with
split?

thanks in advance!





More information about the Python-list mailing list