Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #48756

Re: Problem with the "for" loop syntax

References <18f427ef-7a9a-413d-a824-65c9df430db3@googlegroups.com>
From Ian Kelly <ian.g.kelly@gmail.com>
Date 2013-06-19 16:35 -0600
Subject Re: Problem with the "for" loop syntax
Newsgroups comp.lang.python
Message-ID <mailman.3599.1371681370.3114.python-list@python.org> (permalink)

Show all headers | View raw


On Wed, Jun 19, 2013 at 3:14 PM, arturo balbuena <a7xrturodev@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.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Problem with the "for" loop syntax arturo balbuena <a7xrturodev@gmail.com> - 2013-06-19 14:14 -0700
  Re: Problem with the "for" loop syntax John Gordon <gordon@panix.com> - 2013-06-19 21:30 +0000
  Re: Problem with the "for" loop syntax Dave Angel <davea@davea.name> - 2013-06-19 17:32 -0400
  Re: Problem with the "for" loop syntax Ian Kelly <ian.g.kelly@gmail.com> - 2013-06-19 16:35 -0600
  Re: Problem with the "for" loop syntax Arturo B <a7xrturodev@gmail.com> - 2013-06-19 15:53 -0700
    Re: Problem with the "for" loop syntax Joshua Landau <joshua.landau.ws@gmail.com> - 2013-06-20 00:15 +0100
  Re: Problem with the "for" loop syntax Arturo B <a7xrturodev@gmail.com> - 2013-06-19 17:32 -0700
  Re: Problem with the "for" loop syntax Arturo B <a7xrturodev@gmail.com> - 2013-06-19 18:02 -0700
    Re: Problem with the "for" loop syntax Chris Angelico <rosuav@gmail.com> - 2013-06-20 11:09 +1000

csiph-web