0
This really confusing and I would love to know the solution
Given the code above, output the input x repeated y times. Sample Input: awesome 3 Sample Output: awesomeawesomeawesome https://code.sololearn.com/cXo2LASgjDoT/?ref=app
3 Réponses
+ 1
Multiplication of a string and integer results in integer number of strings concatenated together (atleast in python )
+ 1
Ok thank you line 3 I knew forgot to put that line 5 was the thing i didn't know thank very much
+ 1
TheSillyGoose 1
There is no confusion.
input function by default returns string so if you mulitply number with String then that string would be concatenate that number's time.
So convert input function to integer with int function.