Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #22111
| Path | csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!newsfeed.eweka.nl!eweka.nl!feeder3.eweka.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <python@mrabarnett.plus.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.001 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; ':-)': 0.06; 'python': 0.08; "(i'm": 0.09; '[2]:': 0.09; 'correct.': 0.09; 'from:addr:python': 0.09; 'subject:error': 0.09; 'tries': 0.15; 'typing': 0.15; 'earlier.': 0.16; 'from:addr:mrabarnett.plus.com': 0.16; 'from:name:mrab': 0.16; 'helpful,': 0.16; 'message- id:@mrabarnett.plus.com': 0.16; 'received:84.92': 0.16; 'received:84.92.122': 0.16; 'received:84.92.122.60': 0.16; 'reply- to:addr:python-list': 0.16; 'syntax*': 0.16; 'subject:Help': 0.17; 'wrote:': 0.18; 'programming': 0.20; 'header:In-Reply-To:1': 0.22; 'exercise': 0.25; 'invalid': 0.28; 'assuming': 0.29; 'indicated': 0.29; 'print': 0.29; 'error': 0.30; 'actual': 0.32; "isn't": 0.33; 'header:User-Agent:1': 0.33; 'file': 0.34; 'received:84': 0.34; 'hi,': 0.34; 'reply-to:addr:python.org': 0.34; 'to:addr:python- list': 0.35; 'example,': 0.37; 'but': 0.37; 'entry': 0.37; 'using': 0.37; 'skip:* 60': 0.38; 'but,': 0.39; 'url:org': 0.39; 'to:addr:python.org': 0.40; 'capital': 0.63; 'header:Reply-To:1': 0.70; 'reply-to:no real name:2**0': 0.72; '*in': 0.84; 'ghosh': 0.84 |
| X-CM-Score | 0.00 |
| X-CNFS-Analysis | v=2.0 cv=Dp/UCRD+ c=1 sm=1 a=0nF1XD0wxitMEM03M9B4ZQ==:17 a=qePWxsfFzlIA:10 a=yvcgPVTMDlMA:10 a=OUOv7kDek9cA:10 a=8nJEP1OIZ-IA:10 a=a9DB6PYzAAAA:8 a=3ZDLkt65JqN9z3V_5LsA:9 a=wPNLvfGTeEIA:10 a=tsLIpK6djnMA:10 a=0nF1XD0wxitMEM03M9B4ZQ==:117 |
| X-AUTH | mrabarnett:2500 |
| Date | Sat, 24 Mar 2012 04:00:57 +0000 |
| From | MRAB <python@mrabarnett.plus.com> |
| User-Agent | Mozilla/5.0 (Windows NT 5.1; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | Re: Help needed to understand the error message |
| References | <CABWU=QmEPoxATQ5tBcp4H5DxiCvPGBzq9p09gBVBL=L4VeT1rQ@mail.gmail.com> |
| In-Reply-To | <CABWU=QmEPoxATQ5tBcp4H5DxiCvPGBzq9p09gBVBL=L4VeT1rQ@mail.gmail.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.12 |
| Precedence | list |
| Reply-To | python-list@python.org |
| 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.950.1332561654.3037.python-list@python.org> (permalink) |
| Lines | 32 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1332561654 news.xs4all.nl 6858 [2001:888:2000:d::a6]:35041 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:22111 |
Show key headers only | View raw
On 24/03/2012 03:37, Aloke Ghosh wrote: > Hi, > I am learning Python and do not have programming experience. > I was following an exercise from > http://learnpythonthehardway.org/book/ex2.html > and made a mistake in entry : > > *Print"I like typing this."* > > and got the following error message: > > *In [2]: Print"I like typing this."* > *------------------------------------------------------------* > * File "<ipython console>", line 1* > * Print"I like typing this."* > * ^* > *SyntaxError: invalid syntax* > > I feel the error is in Capital P in print . Correct. (I'm assuming that you're using Python 2; Python 3 is a little different.) > However the error indicated with "*^*" > hints at quote at the end of the line. > > *Can any one please help me understand this.* > It will tell you approximately where the error is, but, as in this example, the actual error may be a little earlier. It tries to be helpful, but remember that it isn't intelligent! :-)
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Help needed to understand the error message MRAB <python@mrabarnett.plus.com> - 2012-03-24 04:00 +0000
csiph-web