Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!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.007 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'syntax': 0.03; '21,': 0.07; 'keys,': 0.07; 'subject:help': 0.07; 'python': 0.09; 'arguments,': 0.09; 'function:': 0.09; 'received:192.168.1.101': 0.09; '20)': 0.16; 'guys,': 0.16; 'parentheses': 0.16; 'row': 0.16; 'wrote:': 0.17; 'subject:need': 0.17; 'thu,': 0.17; 'thanks,': 0.18; 'feb': 0.19; 'bit': 0.21; 'file:': 0.22; 'keyboard': 0.22; 'keys': 0.22; 'lets': 0.22; 'programming': 0.23; 'to:2**1': 0.23; 'header:In-Reply-To:1': 0.25; 'header:User- Agent:1': 0.26; 'displays': 0.27; 'chris': 0.28; 'run': 0.28; 'checked': 0.30; 'file': 0.32; 'print': 0.32; 'idle': 0.33; 'problem': 0.33; 'to:addr:python-list': 0.33; 'version': 0.34; 'saved': 0.35; 'so,': 0.35; 'pm,': 0.35; 'created': 0.36; 'but': 0.36; "didn't": 0.36; 'subject:: ': 0.38; 'mark': 0.38; 'some': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'received:192.168': 0.40; 'end': 0.40; 'your': 0.60; 'red': 0.60; 'first': 0.61; "you'll": 0.62; 'love': 0.63; 'more': 0.63; 'capital': 0.68; 'believe': 0.69; '2013': 0.84; 'received:212.52.84': 0.84; 'received:libero.it': 0.84; 'received:212.52': 0.91 X-CTCH-Spam: Unknown X-CTCH-RefID: str=0001.0A0C0201.5125F4A3.0199,ss=1,re=0.000,fgs=0 X-libjamoibt: 1823 Date: Thu, 21 Feb 2013 11:18:48 +0100 From: leonardo User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 MIME-Version: 1.0 To: Chris Angelico , python-list@python.org Subject: Re: i need help References: <5125E44C.90004@libero.it> 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: 33 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1361441957 news.xs4all.nl 6973 [2001:888:2000:d::a6]:33301 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:39413 thanks, problem solved Il 21/02/2013 10.13, Chris Angelico ha scritto: > On Thu, Feb 21, 2013 at 8:09 PM, leonardo wrote: >> hi guys, >> >> i just created this file: >> >> print "i love pizza!" >> print "pizza" * 20 >> print "yum" * 40 >> print "i'm full." >> >> and saved it into a file with "idle-gui", if i try to run the program i get >> an invalid syntax error, it displays a red sign on the quote mark at the >> end of the first row of my program.. >> i checked but i didn't make mistaked..is idle a bit crazy?? > Are you using Python version 3? If so, you need to put parentheses > around your print arguments, because print is a function: > > print("i love pizza!") > print("pizza" * 20) > print("yum" * 40) > print("i'm full.") > > As an additional tip, I believe your keyboard has a couple of keys on > it marked "Shift". Holding one down lets you produce capital letters, > which make your emails significantly more readable. Get some practice > with these keys, as you'll use them a lot in programming :) > > ChrisA