logo-MindMajix
PostPythonPython
J
James ROBERT

Posted on 23rd July 2024|35 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".

 

1 answers
Answers
P
kumar san

Posted on 23rd July 2024| views

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
Name
Course *
Email *
Phone Number