Issue
I tried this code:
x = 5
y = "Anshul"
print(x)
print(' ',y)
It gave the output:
5
(' ', 'Anshul')
But why the output isn't like this :
5
Anshul
I added ''
to get a space before my name, but it didn't work.
Is there any way to give space?
Solution
Try something like this:
print(' ' + y)
Answered By - Larissa Teixeira
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.