- 2

Hey my fellow colleagues, how do I multiply string by numbers

Multiply string with numbers

24th May 2022, 11:42 AM
Cool Ice
Cool Ice - avatar
9 Answers
+ 4
🙁🤔 On which language? What is your try?
24th May 2022, 11:48 AM
Jayakrishna 🇮🇳
24th May 2022, 12:57 PM
Cool Ice
Cool Ice - avatar
+ 2
"abc" * 2 It's simple
24th May 2022, 3:21 PM
A͢J
A͢J - avatar
+ 2
In python, By multiplying a string by an integer, produces a repeated version of the original string. Like this:- print("hello" * 5) Output:- hellohellohellohellohello
24th May 2022, 11:54 PM
Harshika Malhotra
Harshika Malhotra - avatar
+ 1
Tag the relevant programming language. Re-read the lessons about strings.
24th May 2022, 11:50 AM
Lisa
Lisa - avatar
+ 1
What have you tried? Just try to multiply the string with an integer and see what happens
24th May 2022, 1:02 PM
Lisa
Lisa - avatar
+ 1
You can multiply a string with an integer.. To see result, print the result. You have answer in question..!!!
24th May 2022, 1:12 PM
Jayakrishna 🇮🇳
+ 1
Thanks you buddy's Let me fix it n see the result
24th May 2022, 5:26 PM
Cool Ice
Cool Ice - avatar