[Tutor] Re: print out lines that start with a word

Wolfram Kraus kraus at hagen-partner.de
Wed Feb 9 11:26:40 CET 2005


Damn!
C&P-bug here to! Is this a virus? ;-)

> print [w for w in j.split() if words[0] == '*' and words[-1] == '*']
Should be:
print [w for w in j.split() if w[0] == '*' and w[-1] == '*']



More information about the Tutor mailing list