Need a little parse help

Lonnie Princehouse finite.automaton at gmail.com
Tue May 10 14:00:50 EDT 2005


write() doesn't automatically add a newline like print does.

You can either do:

  outputfile.write(words[1] + '\n')

or 
  
  print >> outputfile, words[1]




More information about the Python-list mailing list