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


Groups > comp.lang.python > #102917

Re: Syntax error (The Python Book) Linux User and Developer Bookazine

From Peter Otten <__peter__@web.de>
Newsgroups comp.lang.python
Subject Re: Syntax error (The Python Book) Linux User and Developer Bookazine
Date 2016-02-14 14:53 +0100
Organization None
Message-ID <mailman.109.1455458105.22075.python-list@python.org> (permalink)
References <caa9384e-21e1-4ac4-a719-703cc0d1f44a@googlegroups.com>

Show all headers | View raw


Geoff Munn wrote:

> Noob at the Python thing so here goes,
> 
> I have copied a program to demonstrate control structures in Python but
> get a syntax error at line 31, isint = False. 

Often the actual syntax error in your code is in one of the lines preceding 
the one that Python is complaining about.

>     new_int=raw_input("Please enter integer {0}:".format(count +1)
>     isint = False

Hint: Do the parentheses match?

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


Thread

Syntax error (The Python Book) Linux User and Developer Bookazine Geoff Munn <geoff.munn@gmail.com> - 2016-02-14 05:39 -0800
  Re: Syntax error (The Python Book) Linux User and Developer Bookazine Peter Otten <__peter__@web.de> - 2016-02-14 14:53 +0100
  Re: Syntax error (The Python Book) Linux User and Developer Bookazine Chris Angelico <rosuav@gmail.com> - 2016-02-15 04:38 +1100
  Re: Syntax error (The Python Book) Linux User and Developer Bookazine Geoff Munn <geoff.munn@gmail.com> - 2016-02-15 06:56 -0800
    Re: Syntax error (The Python Book) Linux User and Developer Bookazine Joel Goldstick <joel.goldstick@gmail.com> - 2016-02-15 10:06 -0500
      Re: Syntax error (The Python Book) Linux User and Developer Bookazine Geoff Munn <geoff.munn@gmail.com> - 2016-02-15 07:33 -0800
      Re: Syntax error (The Python Book) Linux User and Developer Bookazine Larry Hudson <orgnut@yahoo.com> - 2016-02-15 13:17 -0800

csiph-web