+ 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
4 odpowiedzi
+ 10
Remove 'hi' and 3 from the input functions
+ 9
Ohhhh idiot is a big word...
Let's say your 🧠 took a power nap
+ 5
I would say it need to be
x = input()
+ 3
Im an idiot😂😂
Thank you very much guys! Much love!