String question

Andreu root at sys1.org
Mon Jun 23 18:13:01 EDT 2008


Yes, ... don't ask me why, but in fact  v1,v2,v3 = str1.split()
does not seem to work. My original problem was I forgot about
the parenthesis as Tim point out. So I ended up converting to a
list as in:  v = str1.split() and accessing the elements using
v[0] v[1] ect...it is working now. Thanks.

Andreu.


cokofreedom at gmail.com wrote:
> However I would make a list of it.
>>>> v_list = example.split()
> That seems to me to be the more pythonic way to do it, since it is
> dynamic.



More information about the Python-list mailing list