How do we get space in between strings, while multiplying the strings ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How do we get space in between strings, while multiplying the strings ?

Print ("Sam" * 2) Output:- SamSam If we want output Sam Sam by multiplying operation of string.

31st Oct 2020, 6:41 AM
Vivek Kumar Singh
1 Answer
+ 5
Please specifiy the language name in tags , You need to do "Sam "*2
31st Oct 2020, 6:46 AM
Abhay
Abhay - avatar