Is there a way that you can print more than one blank line in a programme, without having to type
print("\n")
load of times?
For example, I want to have a blank page (about 40 lines, I think) before my next line of text
Is there a way that you can print more than one blank line in a programme, without having to type
print("\n")
load of times?
For example, I want to have a blank page (about 40 lines, I think) before my next line of text
Just use multiplication, this will repeat your string however many times you'd like, in this case new lines
>>> print('\n' * 40)
You want to print one black line in program use simple code here some example :
print('\n') print("welcome to python")
output:
welcome to python
© 2022 - 2024 — McMap. All rights reserved.