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


Groups > comp.lang.python > #48756

Re: Problem with the "for" loop syntax

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <ian.g.kelly@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.025
X-Spam-Evidence '*H*': 0.95; '*S*': 0.00; 'python,': 0.02; 'syntax': 0.04; 'error:': 0.07; 'arguments': 0.09; 'function,': 0.09; 'python': 0.11; '__future__': 0.16; 'subject:Problem': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'url:view': 0.20; 'print': 0.22; 'space.': 0.24; 'code:': 0.26; 'header:In-Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'code': 0.31; 'run': 0.32; 'running': 0.33; 'trouble': 0.34; 'subject:the': 0.34; 'subject:with': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'doing': 0.36; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'subject:" ': 0.39; 'to:addr:python.org': 0.39; 'blank': 0.60; "you're": 0.61; 'url:png': 0.68; 'invalid': 0.68; 'statement,': 0.68; 'url:i': 0.72; 'game,': 0.84; 'url:imgur': 0.84; '2013': 0.98
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=xuXffIKR76mExMMP46FJsfMsLcYrPcIk6XPH3m71fFM=; b=FfWCgGNS7TgGKCy7oeTAWBvl5T8epxz5DulbQMS5imKXMv0ecpDju8LshXHvTA/26A CK5Mms9yk835Edijzu7o+qgqM5aKYoVXqf682hFCrbHJpFB+1bw1LfHhOrWcscNEgoZS aHryY8wn7d1g8ezxFiFMMllOpNHJDLGvdpDpNLXURu/PSIUdGFUhZG/ZOYS6mIP/BYrj +wTpfqsCT8AnUDfSkC+pbbahb6AhSLapO38rhEjNsyLwzNCJAfCqCWBuFj+frk46cZGG NxlkC1Yv5lPfVVZdxFMIvWgFFlvzNy8LRe35foa9tqQwAf4Riim412mZH6ZLUtIXPbpn 6nAg==
X-Received by 10.66.139.227 with SMTP id rb3mr8729953pab.121.1371681361615; Wed, 19 Jun 2013 15:36:01 -0700 (PDT)
MIME-Version 1.0
In-Reply-To <18f427ef-7a9a-413d-a824-65c9df430db3@googlegroups.com>
References <18f427ef-7a9a-413d-a824-65c9df430db3@googlegroups.com>
From Ian Kelly <ian.g.kelly@gmail.com>
Date Wed, 19 Jun 2013 16:35:21 -0600
Subject Re: Problem with the "for" loop syntax
To Python <python-list@python.org>
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.3599.1371681370.3114.python-list@python.org> (permalink)
Lines 19
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1371681370 news.xs4all.nl 15919 [2001:888:2000:d::a6]:56436
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:48756

Show key headers only | 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