What is the difference between print("") and print() at the last statement in python coding

9/6/2019 12:23:11 PM

Yash Garg

3 Answers

New Answer


Yash Garg print("") prints an empty string and inserts a new line. print() prints a newline and then inserts newline visually both have same effect.


Your Python file will be shorter by 2 characters if you use print() instead of print("").


printing an empty String and printing nothing both just ends in printing an empty line 🤷‍♂️