Yes it does! Thank you. Rachel
On May 25, 2011, at 8:34 PM, Wayne Werner wrote: > 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 R.M. ArceJaeger Author/Publisher, Platypus Press Contact: arcejae...@gmail.com Website: http://rmarcejaeger.com
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor