Python print statement “Syntax Error: invalid syntax” [duplicate] Python print statement “Syntax Error: invalid syntax” [duplicate] python python

Python print statement “Syntax Error: invalid syntax” [duplicate]


In Python 3, print is a function, you need to call it like print("hello world").


Use print("use this bracket -sample text")

In Python 3 print "Hello world" gives invalid syntax error.

To display string content in Python3 have to use this ("Hello world") brackets.