Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #111985
| From | Joel Goldstick <joel.goldstick@gmail.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: Python Print Error |
| Date | 2016-07-28 14:00 -0400 |
| Message-ID | <mailman.1.1469728837.6033.python-list@python.org> (permalink) |
| References | <386ac508-c9ef-4b7e-907c-00005d04af0f@googlegroups.com> <CAPM-O+zzOJ8UgEuyJ3cSfXtLXYrWOXFhjT3nZVeTqN3+SDOjKA@mail.gmail.com> |
On Thu, Jul 28, 2016 at 1:40 PM, Cai Gengyang <gengyangcai@gmail.com> wrote:
> How to debug this ?
>
>>>> print "This line will be printed."
> SyntaxError: Missing parentheses in call to 'print'
> --
> https://mail.python.org/mailman/listinfo/python-list
You are using python 3.x. print is a function. Use print("this line
will be printed")
--
Joel Goldstick
http://joelgoldstick.com/blog
http://cc-baseballstats.info/stats/birthdays
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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