Oct-09-2019, 05:27 PM
What is the command to skip one, two, or more lines in Python? e.g.
Today is raining
Skip a line
|
Oct-09-2019, 05:27 PM
What is the command to skip one, two, or more lines in Python? e.g.
Today is raining
Oct-09-2019, 05:45 PM
print(), or print('Today\n\nis\n\nraining')
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness. Recommended Tutorials: BBCode, functions, classes, text adventures
Oct-09-2019, 06:01 PM
(This post was last modified: Oct-09-2019, 06:01 PM by Gribouillis.)
Or this one
print("""\ Today is raining""")
Oct-09-2019, 06:43 PM
print("Hello","Sunshine", sep="\n\n")Output
Oct-09-2019, 06:56 PM
print('\n\n'.join(('Today', 'is', 'raining')))
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness. Recommended Tutorials: BBCode, functions, classes, text adventures |
|