Post

PythonPython

J
James ROBERT

Posted on 27th February 2024|30 views

0
votes

Missing Parentheses In Call To Print

Why do we get the error called “missing parentheses in call to print” in python?

I am trying to print a statement like this in Python

Print "hi, how are you?"

I think this is correct but why am I getting the error called "missing parentheses in call to print".

 

Answers
P
kumar san

Posted on 27th February 2024

Yes there is no problem in your print statement, but if you are running the code in python 3 then it will show the error called "missing parentheses in call to print", but it may work in python 2 without any problem, so if you are working on python 3 then do this to avoid the error

print("hi, how are you?")

Write your answer

STILL GOT QUERIES?

Get a Live FREE Demo
  • Explore the trending and niche courses and learning maps
  • Learn about tuition fee, payment plans, and scholarships
  • Get access to webinars and self-paced learning videos