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

Peter Otten __peter__ at web.de
Sun Feb 14 08:53:02 EST 2016


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?




More information about the Python-list mailing list