Print multiple blank lines in python

Is there a way that you can print more than one blank line in a program, without typing

print("\n")

loading time?

For example, I want a blank page (about 40 lines) before my next line of text

+4
source share
1 answer

Just use multiplication, this will repeat your line as many times as you like, in this case new lines

>>> print('\n' * 40)
+10
source

All Articles