Ask coding questions

← Back to all posts
How do I start a new line?
NOUSERNAMEHI (21)

I am not very good at Python

Answered by VulcanWM (2285) [earned 5 cycles]
View Answer
Comments
hotnewtop
VulcanWM (2285)

Use \n for a new line

18WoodO (0)

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

Kopamed (186)

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")