beginner's question
Sean Ross
sross at connectmail.carleton.ca
Fri May 14 09:11:06 EDT 2004
"Sean Ross" <sross at connectmail.carleton.ca> wrote in message
news:Xs3pc.34385$dr1.943764 at news20.bellglobal.com...
> dst.write(str(w in lexicon)) # writes 'True, ' or 'False, '
The above code will run the True/False output together, e.g.
"TrueTrueFalseTrueFalse".
I doubt that's what you want. Perhaps this, instead:
dst.write("%s "%(w in lexicon))
That would write "True True False True False".
Sean
More information about the Python-list
mailing list