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


Groups > comp.lang.python > #101406

Re: Problem with 'print'

From Peter Otten <__peter__@web.de>
Newsgroups comp.lang.python
Subject Re: Problem with 'print'
Date 2016-01-09 16:26 +0100
Organization None
Message-ID <mailman.94.1452353189.2305.python-list@python.org> (permalink)
References <CAOtrjidkbrDPzqkEeMjbmWcgscr0k_vK_Ns=SfjXPHzVGyovNQ@mail.gmail.com>

Show all headers | View raw


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.

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


Thread

Re: Problem with 'print' Peter Otten <__peter__@web.de> - 2016-01-09 16:26 +0100

csiph-web