On Wed, May 25, 2011 at 10:17 PM, Rachel-Mikel ArceJaeger < arcejae...@gmail.com> wrote:
> You asked for the traceback. All I get is this: > --------------------- > > python a2.py > File "a2.py", line 20 > titles = [title in myFile if title not in ["\n",""]] > > ^ > SyntaxError: invalid syntax > Ahah. You're missing the important part: titles = [title for title in myFile if title not in ["\n",""]] you're missing the "title for" part. That should fix it. HTH, Wayne
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor