How is print statement represented in python 3 (v/s python2)?
Answer / Gagan Sachan
In Python 2, the print statement requires parentheses: print "n". In Python 3, the print function no longer needs parentheses and it automatically prints on a new line without needing to append "n": print("...").
| Is This Answer Correct ? | 0 Yes | 0 No |
Why is button parameter “command” executed when declared?
How will you capitalize the first letter of a string?
How to concatenate two lists in python?
How to read a 10gb (or larger) file size in python?
How to avoid having class data shared among instances?
Where python is mostly used?
How do you use n in python?
What is the best notepad?
What are the various types of operators in Python?
Does flask work with python 3?
Explain other string literals?
What are types in python?