Skip to content
← Back to Community
How do I start a new line?
Profile icon
NOUSERNAMEHI

I am not very good at Python

Answered by VulcanWM [earned 5 cycles]
View Answer
Voters
Profile icon
FrancescaCorbi1
Profile icon
durvishsyal1
Profile icon
RakeshRAJENDRA1
Profile icon
AliEl04
Profile icon
Mahumk66
Profile icon
cullenjy20
Profile icon
but511336
Profile icon
AsierMR
Profile icon
BLoBBERT
Profile icon
69ismagicnumber
Comments
hotnewtop
Profile icon
VulcanWM

Use \n for a new line

Profile icon
jonross321

Use \n in a string to make a new line, or use triple quotations '''Place string here.''' to have multiple lines. If you are using text-based gaming like RPG, then I recommend the \n, but if you want to include ASCII art (making pictures out to many letters, symbols, numbers, and others) then use the triple quotes.

Profile icon
bobninja

just press enter

Profile icon
18WoodO

all you need to do if it is text is put the following in speech marks: \n
otherwise outside of this press enter

hope this helps

Profile icon
Kopamed

There are multiple ways to do it:
you can add a \n like @medcho said, or you can use the multiple ' thingy to write on different lines.

print('''This will be printed on multiple lines''')

Or you can just use the print statement:

print("hello") print("New line") print() print("skipped a line")