Problem with the "for" loop syntax

Chris Angelico rosuav at gmail.com
Wed Jun 19 21:09:23 EDT 2013


On Thu, Jun 20, 2013 at 11:02 AM, Arturo B <a7xrturodev at gmail.com> wrote:
> Fixed, the problem was in
> HANGMANPICS
>
> I didn't open the brackets.
>
> Thank you guys :)

General debugging tip: Syntax errors are sometimes discovered quite
some way below the actual cause. The easiest way to figure out what's
the real cause is to start cutting away unnecessary code until all
that's left is the tiniest part that still has the error. This is also
very helpful as a prerequisite to posting on a list like this, so even
if you can't find the problem yourself by this method (you often will,
though), it's well worth doing.

ChrisA



More information about the Python-list mailing list