0
Using "\n"
print("bruh","\n","dood") This code gives the output bruh dood Why is there some empty space before dood? How can I do this without that empty space?
4 Respuestas
+ 10
you can do it this way by including the new line escape sequence in front of the text for the 2nd string which should appear as a new line.
print("bruh","\ndood")
+ 9
I believe it's because you separated the words with a coma. to fix, I would use only on string. like this: print("bruh\ndood")
then the output would be:
bruh
dood
+ 2
Thanks guys