Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #39406
| Path | csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.004 |
| 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; '20)': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'guys,': 0.16; 'parentheses': 0.16; 'row': 0.16; 'wrote:': 0.17; 'subject:need': 0.17; 'thu,': 0.17; 'feb': 0.19; 'bit': 0.21; 'file:': 0.22; 'keyboard': 0.22; 'keys': 0.22; 'lets': 0.22; 'programming': 0.23; 'header:In-Reply-To:1': 0.25; 'displays': 0.27; 'message-id:@mail.gmail.com': 0.27; 'run': 0.28; 'checked': 0.30; 'file': 0.32; 'print': 0.32; 'idle': 0.33; 'to:addr:python- list': 0.33; 'version': 0.34; 'received:google.com': 0.34; 'saved': 0.35; 'so,': 0.35; 'pm,': 0.35; 'received:209.85': 0.35; 'created': 0.36; 'but': 0.36; "didn't": 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'mark': 0.38; 'some': 0.38; 'to:addr:python.org': 0.39; '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 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=EW8QL1vK/6AZzFOuBjCuMFdDTUw66H7XH8eC5OCx2Lo=; b=bO8IXh2Nlmlx6M4lmeodU9kFEpHeLLGvFG1rEqHgE8ZEDWqsTMkedGiOeelhn0qGa2 5G3B+MEXbvRiI8z/laDx4jhjL26do8YRFaOgOjsu7buVPpXxkMBakuypeCqx6hi5csam ATZGIU03L7cR9u+8vwjpRcj8+LmVggyvPhNJ9GRW4ViJkbusbUyeFDpf2XgnuYjNdqog 3nXolznhUs8D/OhGpIIqf1wzYYgPjvj7evMRw97R2s+2OxhOGGB3Tv0wOlYE1TRvQ0xJ zSsLKAfX4k6SphlmE2lQESY+GFqoj9YtuifdGhFau9qikUEgNvnXop+wyOcvuNDwWOrz 3MfQ== |
| MIME-Version | 1.0 |
| X-Received | by 10.66.26.167 with SMTP id m7mr7178660pag.212.1361438014659; Thu, 21 Feb 2013 01:13:34 -0800 (PST) |
| In-Reply-To | <5125E44C.90004@libero.it> |
| References | <5125E44C.90004@libero.it> |
| Date | Thu, 21 Feb 2013 20:13:34 +1100 |
| Subject | Re: i need help |
| From | Chris Angelico <rosuav@gmail.com> |
| To | python-list@python.org |
| Content-Type | text/plain; charset=ISO-8859-1 |
| 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.2148.1361438018.2939.python-list@python.org> (permalink) |
| Lines | 29 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1361438018 news.xs4all.nl 6928 [2001:888:2000:d::a6]:37004 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:39406 |
Show key headers only | View raw
On Thu, Feb 21, 2013 at 8:09 PM, leonardo <tampucciolina@libero.it> 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
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: i need help Chris Angelico <rosuav@gmail.com> - 2013-02-21 20:13 +1100
csiph-web