[EMAIL PROTECTED] wrote:
Hi,
I'm pretty new to Python, to programming overall...so how would I make
something where the user inputs multiple words in a string - like
"connect 123.123.123.123 21 user password" or similar, and then I can
split this string up to pass these arguments to a function like
ftp_connect(ip, port, user, pw) etc...? I have no idea how to "break"
the string up so I can get these out of it..

The .split() method of strings should work for you.

If you need more, provide more background...  and maybe
let us know that this isn't homework. ;-)

-Peter
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to