Problem with the "for" loop syntax

Ian Kelly ian.g.kelly at gmail.com
Wed Jun 19 18:35:21 EDT 2013


On Wed, Jun 19, 2013 at 3:14 PM, arturo balbuena <a7xrturodev at gmail.com> wrote:
> Hello guys...
> I´m a begginer in Python, I'm doing a Hangman game, but I'm having trouble with this blank space. I would be greatful if you help me. :)
>
> Here's my code:
>
> http://snipplr.com/view/71581/hangman/
>
> When I run the code it says: Invalid Syntax and this is the error:
>
> http://i.imgur.com/jKYOPMY.png
>
> http://i.imgur.com/ySoOZFR.png

Are you running this in Python 2 or Python 3?  In Python 2, print is a
statement, not a function, and the end='' arguments would cause a
SyntaxError if you're not using the necessary __future__ import.



More information about the Python-list mailing list