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)

4th Feb 2021, 4:36 AM
DigiDragon
DigiDragon - avatar
3 Antworten
+ 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/
4th Feb 2021, 4:51 AM
Simba
Simba - avatar
+ 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.
4th Feb 2021, 5:18 AM
noteve
noteve - avatar
+ 1
ok. thanks for the help!
5th Feb 2021, 2:21 AM
DigiDragon
DigiDragon - avatar