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


Groups > comp.lang.python > #111986

Re: Python Print Error

From Ian Kelly <ian.g.kelly@gmail.com>
Newsgroups comp.lang.python
Subject Re: Python Print Error
Date 2016-07-28 12:03 -0600
Message-ID <mailman.2.1469729037.6033.python-list@python.org> (permalink)
References <386ac508-c9ef-4b7e-907c-00005d04af0f@googlegroups.com> <CALwzidkkWS=z2g8Y14+AX0cN6Sd8C62Nfi=XV-bzDEEBATBRFg@mail.gmail.com>

Show all headers | View raw


On Thu, Jul 28, 2016 at 11:40 AM, Cai Gengyang <gengyangcai@gmail.com> wrote:
> How to debug this ?
>
>>>> print "This line will be printed."

This is Python 2 print statement syntax.

> SyntaxError: Missing parentheses in call to 'print'

This indicates that you're trying to run the above in Python 3.

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


Thread

Python Print Error Cai Gengyang <gengyangcai@gmail.com> - 2016-07-28 10:40 -0700
  Re: Python Print Error Joel Goldstick <joel.goldstick@gmail.com> - 2016-07-28 14:00 -0400
  Re: Python Print Error Ian Kelly <ian.g.kelly@gmail.com> - 2016-07-28 12:03 -0600
  Re: Python Print Error Timothy <timothy@nospam.tld> - 2016-07-28 22:30 +0000
  Re: Python Print Error Stephane Wirtel <stephane@wirtel.be> - 2016-07-29 00:49 +0200

csiph-web