1

i am new to python. i am try to run my first hello world program but i got an error msg.

please find below the screen shot

enter image description here

Error Msg look like this:

>>> print "hello"

File "" line1

print "hello" ^

SyntaxError: Missing parentheses in call to 'print'

CodeMan
  • 1,941
  • 6
  • 26
  • 44

1 Answers1

4

You are using Python 3, In this version print is not a keyword it is a function. Try this :

print("hello")

See changes in Python3 from Python 2

shauryachats
  • 9,975
  • 4
  • 35
  • 48
shaktimaan
  • 1,769
  • 13
  • 14