Jump to content

Check out our Community Blogs

Register and join over 40,000 other developers!

Recent Status Updates

View All Updates

- - - - -

Odd syntax error?

syntax syntax error

  • Please log in to reply
No replies to this topic

#1 akashhsaka


    CC Lurker

  • Just Joined
  • Pip
  • 3 posts

Posted 29 April 2009 - 09:43 AM

I'm just beginning programming and was told that Python is a great first language. So it's the basic, introduction program Hello, World. Seemingly very simple.

print "Hello, world."

End of the code.
I'm using Python 3.0 and it gives me a very plain pop-up error stating an invalid syntax and highlights the latter quotation. I typed it out just like the book I'm using said to. Not sure what I'm doing wrong here. So I got the notion to do:

"Hello, world."

I ran it and then the shell popped up and all it had to say was restart with a bunch of "=" on either side. I tried using:

print 'Hello, world.'

and it did the same thing as when I tried running it the second way, shell just popped up and said Restart then did nothing else. Any ideas?
  • 0

Also tagged with one or more of these keywords: syntax, syntax error

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download