[Tutor] (no subject)
Alan Gauld
alan.gauld at btinternet.com
Sat Sep 7 01:35:13 CEST 2013
On 06/09/13 20:52, Sammy Cornet wrote:
> on my Interpreter windows, as my first attempt, I wrote "hello world"
> but it keep telling me this: SyntaxError: invalid syntax
> Can you help me please?
Python doesn't understand what "hello world" means.
It's just a value, like 42 or True to python. So python reports a syntax
error (ie 'grammar' it doesn't understand).
You need to tell Python what to do with your text. I suspect you
wanted to print it so you should type:
print("hello world")
Find a tutorial you like and follow it until you get
the hang of things.
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
More information about the Tutor
mailing list