How do we get space in between strings, while multiplying the strings ? | Sololearn: Learn to code for FREE!
Nowy kurs! Każdy programista powinien nauczyć się Generative AI!
Wypróbuj darmową lekcję
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 Odpowiedź
+ 5
Please specifiy the language name in tags , You need to do "Sam "*2
31st Oct 2020, 6:46 AM
Abhay
Abhay - avatar