If I need to print a single newline, what is the most Pythonic way to write the print()
statement? I am teaching someone Python and I want to do it right.
The two ways that I found most likely were:
1) print("")
\n
2) print("\n", end = "")
Neither. The usual way would be:
print()
Most simple and shorter method is :
print()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With