+ 4
Python lesson 14.1 help
I passed test case #1, but then when I do test case #2, it tells me I failed because test case #1 is wrong. How do I fix? x = input() y = input() Task: Given the code above, output the input x repeated y times. For the first test case it says the expected output is hihihihihi so I did print(âhiâ * 5) and that worked. Then the second test it says expected output is pythonpython but when I change my code to print(âpythonâ * 2) it says I failed because the expected output is hihihihihi. How do I pass both?
6 Answers
+ 4
x = input ()
y = int(input())
print(x * y)
+ 8
print(input()*int(input())
+ 6
Please copy and paste the lesson's problem explination. And also include your attempt so we can see where you messed up
+ 4
The lessons leading up to a challenge teach what you need to know. If you get stuck go back over the lessons that lead up to the challenge. The point of the challenge is to see if you grasped what was taught, so if you don't, then go back over them until you do.
+ 4
thanks for all your help everyone! I was filling in values for the input where I should have been leaving it blank
+ 3
X = Int(input("enter the number:"))
Y = Int(input("enter the number:"))
Print(X * Y)