+ 1

Write a program to take x and y as input and output the string x, repeated y times.

Please tell me the answer and also explain it.

9th Feb 2022, 7:36 AM
Forever Knight
7 Answers
+ 2
here is an example without any exception handling: x = input() y = int(input()) print(x * y)
9th Feb 2022, 7:47 AM
Bahha┣
Bahha┣ - avatar
+ 2
Thanks a lot , I would appreciate that â€đŸ™
9th Feb 2022, 7:50 AM
Forever Knight
+ 1
in what programming language?
9th Feb 2022, 7:40 AM
Bahha┣
Bahha┣ - avatar
9th Feb 2022, 7:43 AM
Forever Knight
+ 1
Why we didn't use int with x?
9th Feb 2022, 7:48 AM
Forever Knight
+ 1
because you said it's a string.
9th Feb 2022, 7:49 AM
Bahha┣
Bahha┣ - avatar
+ 1
Well Forever Knight, you should have tried towards this problem a little bit, but you didn't. We won't give you direct answers here (without your try, but unfortunately someone gave) Please refer: https://www.sololearn.com/discuss/1316935/?ref=app
9th Feb 2022, 9:51 AM
NEZ
NEZ - avatar