Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #43520 > unrolled thread

Re: Invalid syntax with print "Hello World"

Started byandygong.happy@gmail.com
First post2013-04-13 09:03 -0700
Last post2013-04-13 09:03 -0700
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Invalid syntax with print "Hello World" andygong.happy@gmail.com - 2013-04-13 09:03 -0700

#43520 — Re: Invalid syntax with print "Hello World"

Fromandygong.happy@gmail.com
Date2013-04-13 09:03 -0700
SubjectRe: Invalid syntax with print "Hello World"
Message-ID<6443b0bb-34dc-452b-a0bd-5544b129fed7@googlegroups.com>
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.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web