Alan Gauld schreef:
    if line == "3":
          line.next

this then becomes f.next() # next is a method not an attribute so needs the () to call it

Shouldn't it even be 'line = f.next()'?


--
The saddest aspect of life right now is that science gathers knowledge
faster than society gathers wisdom.
  -- Isaac Asimov

Roel Schroeven

_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to