Re: [Tutor] Splitting strings and undefined variables

2009-02-10 Thread Andreas Kostyrka
Am Mon, 9 Feb 2009 12:05:33 -0800 schrieb Moos Heintzen : > Hello all, > > I was looking at this: > http://www.debian.org/doc/manuals/reference/ch-program.en.html#s-python > > I have a question about the line of code that uses split() > > With the python version, the line below only works if th

[Tutor] Splitting strings and undefined variables

2009-02-09 Thread Moos Heintzen
Hello all, I was looking at this: http://www.debian.org/doc/manuals/reference/ch-program.en.html#s-python I have a question about the line of code that uses split() With the python version, the line below only works if there are three fields in line. (first, last, passwd) = line.split() Also,