How do I space out the result of this code print(welcome + name) cause in the result there is no spacing | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How do I space out the result of this code print(welcome + name) cause in the result there is no spacing

https://code.sololearn.com/cg31W468BUxZ/?ref=app

28th Oct 2021, 6:20 AM
marc anthony
marc anthony - avatar
2 Answers
+ 4
print can take any number of arguments, and it will separate them with " " by default So, print(welcome, name) will do the job
28th Oct 2021, 6:57 AM
Angelo
Angelo - avatar
+ 2
You have to put the spaces *inside* the quotation marks.
28th Oct 2021, 6:21 AM
Simon Sauter
Simon Sauter - avatar