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: 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: =?ISO-8859-1?Q?Tarek_Ziad=E9?= 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: In-Reply-To: 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 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