String question

Andreu root at
Tue Jun 24 00:13:01 CEST 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] is working now. Thanks.


cokofreedom at 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