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,841
  • 5
  • 24
  • 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,275
  • 4
  • 34
  • 47
shaktimaan
  • 1,639
  • 13
  • 13