Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Skip a line
#1
What is the command to skip one, two, or more lines in Python? e.g.

Today

is

raining
Reply
#2
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
Reply
#3
Or this one
print("""\
Today

is

raining""")
Reply
#4
print("Hello","Sunshine", sep="\n\n")
Output
Output:
Hello Sunshine
Reply
#5
print('\n\n'.join(('Today', 'is', 'raining')))
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  need to skip password prompt, continue... tester_V 2 1,460 Oct-19-2021, 05:49 PM
Last Post: tester_V
  Delimiters - How to skip some html tags from being translate Melcu54 0 1,646 May-26-2021, 06:21 AM
Last Post: Melcu54
  How to skip to a different line while importing a different script kat_gamer 2 2,233 Feb-03-2021, 04:10 AM
Last Post: deanhystad
  How to skip a folder directory in a loop mfkzolo 2 12,510 Nov-18-2020, 07:56 AM
Last Post: mfkzolo
  How to skip LinkedIn signup link using python script? Mangesh121 0 1,784 Aug-26-2020, 01:22 PM
Last Post: Mangesh121
  How to calculate column mean and row skip non numeric and na Mekala 5 4,910 May-06-2020, 10:52 AM
Last Post: anbu23
  Functions, skip an arugment SpongeB0B 2 2,089 Mar-27-2020, 12:10 PM
Last Post: SpongeB0B
  Skip header python_bg1 1 1,972 Jul-25-2019, 01:34 AM
Last Post: ichabod801
  Python: why skip the 'else' if password is wrong Max_988 1 1,953 Jun-20-2019, 12:19 AM
Last Post: woooee
  Function to skip meta data in a .csv file using Python ajgardev 1 2,505 Jul-22-2018, 12:53 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020