0
How to get Code Coach to accept multiple test cases?
How do I get Code Coach to accept multiple test cases? I know the answers but the app returns them as wrong. Working on the Fruit Bowl project. Thanks print (12%12) print(24%12)
3 Réponses
+ 6
We have to create one code for all 5 test cases. I mean we can solve the code coach challenges if our code passes all test cases only.
Btw, take a look at this lesson to understand the difference between '%' and '//'
https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/4430/
+ 5
In challenges, You dont have to type each test cases, You have to get the input in order to get each test cases' inputs at once.
For example if Input consist of 2 integers:
x = int(input())
y = int(input())
# some code
...
The number of inputs means the number of your input variable. This will get the challenge' input, then code to meet its expected outputs.
+ 1
ok. thanks for the help!