Python Forum
Skip a line - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Skip a line (/thread-21679.html)



Skip a line - doug2019 - Oct-09-2019

What is the command to skip one, two, or more lines in Python? e.g.

Today

is

raining



RE: Skip a line - ichabod801 - Oct-09-2019

print(), or print('Today\n\nis\n\nraining')


RE: Skip a line - Gribouillis - Oct-09-2019

Or this one
print("""\
Today

is

raining""")



RE: Skip a line - jefsummers - Oct-09-2019

print("Hello","Sunshine", sep="\n\n")
Output
Output:
Hello Sunshine



RE: Skip a line - ichabod801 - Oct-09-2019

print('\n\n'.join(('Today', 'is', 'raining')))