0

How to complete the challenges

Can anyone help me, I started doing some of the coding challenges, and whenever I turn it in, It almost impossible to do the second case and so forth since they only want one entry at a time. And when I do that one entry, it tells me that I failed the other ones

1st Aug 2020, 11:28 PM
Peter Malango
Peter Malango - avatar
4 odpowiedzi
+ 1
Sorry I don't get you??
2nd Aug 2020, 1:22 AM
MANSOOR PASHA
MANSOOR PASHA - avatar
0
Ok let me try to clarify, say the 1st test case demands an input and gives out an output, say it wants 2 as its answer, and the 2nd test case wants a 10. I then define a function, and call it for both of the test cases, but when I do so it says that my output is 2 and 10 ( 10 is on a newline below 2 ) . But if I do only one test case at a time, then it says that test case 1 or 2 is correct but then I fail all the remaining ones. So then I ask my self, how is it possible to complete the other four test cases without getting say 2 , 10 , 45 , 100 , 33 for all the test cases respectively, if the challenge only accepts one test case entry at a time. Because it wants just a 2, or just a 10, or just a 45 and so on... But then you fail all the other remaining ones. Hope this clarifies it If you know the issue please help me, as I simply just want to enhance my skills.
2nd Aug 2020, 12:47 PM
Peter Malango
Peter Malango - avatar
0
I caught my mistake, all I needed to do was simply rearrange my code.
18th Aug 2020, 5:45 PM
Peter Malango
Peter Malango - avatar