+ 2

ā€œWrite a program to take x and y as input and output the string x, repeated y timesā€ Help

Iā€™m currently learning python and I cannot get passed - Working with inputs Im on the practise code and itā€™s asking me to ā€œWrite a program to take x and y as input and output the string x, repeated y timesā€ The program Iā€™ve written is: x = input(ā€œhiā€) y = int(input(3)) print(x*y) This program is in the solution tab, but Itā€™s not working. Where am i going wrong? Help with this will be greatly appreciated! Thanks

5th May 2022, 5:42 PM
Kieran Vandenberg
4 Answers
+ 10
Remove 'hi' and 3 from the input functions
5th May 2022, 5:48 PM
MATOVU CALEB
MATOVU CALEB - avatar
+ 9
Ohhhh idiot is a big word... Let's say your šŸ§  took a power nap
5th May 2022, 6:22 PM
Oma Falk
Oma Falk - avatar
+ 5
I would say it need to be x = input()
5th May 2022, 5:47 PM
Denise RoƟberg
Denise RoƟberg - avatar
+ 3
Im an idiotšŸ˜‚šŸ˜‚ Thank you very much guys! Much love!
5th May 2022, 5:55 PM
Kieran Vandenberg