Ask coding questions

← Back to all posts
How do you add spaces in python?
srirammanikanda

I need help with spaces in python.

Voters
12-7b-Mohammad
firefish
srirammanikanda
Comments
hotnewtop
[deleted]

Well, with that you can say

print("Hello World")
print()
print("Hi, World")

[deleted]

or you can just use \n to create a new line(skip a line).

Kognise

Hey! Just press the space key on your keyboard :)

UPVOTE AND PRESS THE CHECK BOX TO ACCEPT MY ANSWER IF YOU LIKE CUTE ANIMALS

EDIT: THANKS FOR THE UPVOTE

rediar

@Kognise wow this genius fix works

Kognise

@rediar THANKS! MAKE SURE TO UPVOTE IF YOU HAVEN'T ALREADY

rediar
firefish

@Kognise Stop leaving Caps Lock on guys...

CodingCactus

what do you mean by 'spaces'? just use a normal space?

[deleted]

@srirammanikanda thanks for choosing my answer. :)

[deleted]

Yo, next time, be more clear with your question.
The community welcomes you :)

srirammanikanda

@Twitchmmanikan Ok. Sorry for the poor clarity of the question.

ChezTacoz

What do you mean by spaces? Like the spaces between words?

[deleted]

you mean to skip a line?