Problem with 'print'

Peter Otten __peter__ at web.de
Sat Jan 9 10:26:17 EST 2016


pablo gormi wrote:

> Hello, recently I downloaded python, but when I try to execute one file
> with the command 'print' it shows me a error. The error is:
> 
> Missing parentheses in call to 'print'
> 
> Please help mThank you.

You have downloaded Python 3 and are using Python 2 syntax. 

Learning Python 3 from a book or tutorial that uses Python 2 is no fun; I 
recommend that you use another book that covers Python 3. 

If the book is mandated by your school download Python 2.7 from python.org 
and work through the examples with that interpreter. 

Both Python 2.7 and 3.x can be installed in parallel on the same machine, 
and you can pick up the differences later.




More information about the Python-list mailing list