+ 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 Antworten
+ 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