+ 1
When solving any code challenge there are certain test cases so do you write diff codes for each test case
i was able to do the test case 1 ,but when I tried the second case it always had a error, In test case 2 : There were 2 inputs So I wrote - " x= int(input()) y= int(input())" And there was an eoferror
8 Réponses
+ 5
No only single generic code which can satisfy all test cases.
+ 3
Give a complete task description.
Show your complete code.
+ 2
Show your code. We cannot see what you typed in there.
+ 2
No, in code coaches, you only need to write 1, there are several test cases, but the reason for it is to make sure you code works in different situations
And also, there's hidden test cases, that make sure people won't complete the tasks so easily
+ 1
siblings = int(input())
popsicles = int(input())
#siblings = 2
#popsicles = 5
#your code goes here,test case 1
x = popsicles/siblings
if x==0:
print("give away")
else:
print("eat them yourself")
# test case 2
+ 1
☕︎︎AstroParrot✦
Thankyou