Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #29679
| Path | csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <tarek@ziade.org> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.000 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'syntax': 0.03; 'python': 0.09; 'mentions': 0.09; 'received:internal': 0.09; 'subject:Function': 0.09; 'from:name:tarek ziad\xe9': 0.16; 'over"': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:mail.srv.osa': 0.16; 'received:messagingengine.com': 0.16; 'received:nyi.mail.srv.osa': 0.16; 'received:osa': 0.16; 'received:srv.osa': 0.16; 'subject:Print': 0.16; 'wrote:': 0.17; 'typing': 0.17; '>>>': 0.18; 'statement': 0.23; 'header:In-Reply- To:1': 0.25; 'header:User-Agent:1': 0.26; 'function': 0.30; 'print': 0.32; 'problem': 0.33; 'to:addr:python-list': 0.33; 'thanks': 0.34; 'pm,': 0.35; 'resolve': 0.37; 'subject:: ': 0.38; 'received:10': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'email addr:gmail.com': 0.63 |
| DKIM-Signature | v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:date:from:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; s=smtpout; bh=vp1r/GyMqFCiJFCP4lGM0J RuWS8=; b=LFByjmsGsehwymq8sZdQc59hlI1kzVs7iy+9Mz4f1mXjUSwa8jE23+ zchXlNrNFmImORGQcyQKUh9b7B4XU31cK8sgJcKx4goB2rpGYgDLqQDag+IpcgSp vfTHWHiTFdJQdO+cdLycsGgywNilC6g0IXGRDCbMsuhgfCpslRN7s= |
| X-Sasl-enc | lMh6ouzmAWAIT3Po9FgxwKiAi1psvfZNS9q9DKFneNdK 1348259362 |
| Date | Fri, 21 Sep 2012 22:29:55 +0200 |
| From | Tarek Ziadé <tarek@ziade.org> |
| User-Agent | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | Re: Print Function |
| References | <db8c7111-8fc7-4884-8c58-987399f7793f@googlegroups.com> |
| In-Reply-To | <db8c7111-8fc7-4884-8c58-987399f7793f@googlegroups.com> |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1038.1348259365.27098.python-list@python.org> (permalink) |
| Lines | 16 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1348259365 news.xs4all.nl 6921 [2001:888:2000:d::a6]:41588 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:29679 |
Show key headers only | View raw
On 9/21/12 10:20 PM, gengyangcai@gmail.com wrote:
> Hello ,
>
>
> I am currently using Python 3.2.3 . WHen I use the print function by typing print "Game Over" , it mentions " SyntaxError : invalid syntax ". Any ideas on what the problem is and how to resolve it ? Thanks a lot .
print was a statement in python 2.x, it is now a function so you need
parenthesis:
>>> print("Game Over")
Game Over
>
>
> GengYang
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Print Function gengyangcai@gmail.com - 2012-09-21 13:20 -0700
Re: Print Function Rodrick Brown <rodrick.brown@gmail.com> - 2012-09-21 16:28 -0400
Re: Print Function Tarek Ziadé <tarek@ziade.org> - 2012-09-21 22:29 +0200
Re: Print Function Ian Kelly <ian.g.kelly@gmail.com> - 2012-09-21 14:54 -0600
Re: Print Function Alister <alister.ware@ntlworld.com> - 2012-09-21 21:11 +0000
Re: Print Function Ian Kelly <ian.g.kelly@gmail.com> - 2012-09-21 16:43 -0600
Re: Print Function John Gordon <gordon@panix.com> - 2012-09-21 21:17 +0000
Re: Print Function Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-09-22 01:26 +0000
Re: Print Function Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-09-22 08:27 +0100
Re: Print Function Walter Hurry <walterhurry@lavabit.com> - 2012-09-22 23:28 +0000
csiph-web