0

I am trying to run my first program/script (pardon my bad terminology, I am a newbie), and just doesn't work. I am using Ubuntu, and IDLE. and I have written:

print "Hello, world!"

I saved the file as hello.py. Tried to click Run - Run Module, but then it says "Invalid syntax".
Also tried to write "python hello.py" in the python shell, but then I got:
SyntaxError: invalid syntax (<pyshell#13>, line 1)

Anyone knows how to get my program to work? Would really appreciate the help.

3
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by carpenoctem
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.