Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Python
  3. Question
Python

Python 3 print without parenthesis

Asked by Aaditya Srivastva Apr 14, 2021 1.2K views 1 answer
Share

About this question

The print used to be a statement in Python 2, but now it became a function that requires parenthesis in Python 3.

Is there any way to suppress these parentheses in Python 3? Maybe by re-defining the print function?

So, instead of

print ("Hello stack over flowers")

I could type:

print "Hello stack over flowers"

Your answer

1 Answer

More Python discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Python Blogs

Guides, tips and career advice on Python from JanBask experts.