Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #43520
| X-Received | by 10.224.58.77 with SMTP id f13mr8796966qah.7.1365868998549; Sat, 13 Apr 2013 09:03:18 -0700 (PDT) |
|---|---|
| X-Received | by 10.50.33.175 with SMTP id s15mr280058igi.8.1365868998362; Sat, 13 Apr 2013 09:03:18 -0700 (PDT) |
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!t2no53268275qal.0!news-out.google.com!ef9ni31353qab.0!nntp.google.com!ca1no43799431qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail |
| Newsgroups | comp.lang.python |
| Date | Sat, 13 Apr 2013 09:03:17 -0700 (PDT) |
| In-Reply-To | <e6532b30-c19b-4417-8cee-7a0ff3f7c64a@z8g2000prd.googlegroups.com> |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=59.66.93.113; posting-account=oaW2oAoAAAAzQwYu48TR_I4VihBk8FWS |
| NNTP-Posting-Host | 59.66.93.113 |
| References | <af277c44-cffc-49c4-bce7-152799bddea8@13g2000yql.googlegroups.com> <e6532b30-c19b-4417-8cee-7a0ff3f7c64a@z8g2000prd.googlegroups.com> |
| User-Agent | G2/1.0 |
| MIME-Version | 1.0 |
| Message-ID | <6443b0bb-34dc-452b-a0bd-5544b129fed7@googlegroups.com> (permalink) |
| Subject | Re: Invalid syntax with print "Hello World" |
| From | andygong.happy@gmail.com |
| Injection-Date | Sat, 13 Apr 2013 16:03:18 +0000 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding | quoted-printable |
| Xref | csiph.com comp.lang.python:43520 |
Show key headers only | View raw
On Thursday, March 12, 2009 3:25:53 PM UTC+8, John Machin wrote:
> On Mar 12, 5:57 pm, Henrik Bechmann <hbechm...@gmail.com> wrote:
> > obviously total mewbiew:
> >
> > My first program in Python Windows
>
> What is that you are callind "Python Windows"? What version of Python
> are you running?
>
> 2.X: print "Hello World"
> should work.
>
> 3.X: print is now a function,
> print("Hello World")
> should work.
>
> If that gets you going: read the tutorial that belongs to the version
> of Python that you are using.
> If it doesn't, come back here with a bit more detail.
>
> BTW, don't indent your first line. Make sure it starts in column 1.
>
> HTH,
> John
> >
> > print "Hello World"
> >
> > I select Run/Run Module and get an error:
> >
> > Syntax error, with the closing quote highlighted.
> >
> > Tried with single quotes as well. Same problem.
> >
> > Can someone explain my mistake?
> >
> > Thanks,
> >
> > - Henrik
Thank you.I got the same error.And your suggestion is so useful.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Invalid syntax with print "Hello World" andygong.happy@gmail.com - 2013-04-13 09:03 -0700
csiph-web