How do we get space in between strings, while multiplying the strings ? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
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 ответ
+ 5
Please specifiy the language name in tags , You need to do "Sam "*2
31st Oct 2020, 6:46 AM
Abhay
Abhay - avatar