0

Why test case 4 is falied ?

I don't know about the test case 4's input of the popsicles challenge . So,help me https://code.sololearn.com/cy9s0eryP2C7/?ref=app

30th Apr 2020, 12:24 PM
TeckgeekARJ
TeckgeekARJ - avatar
2 ответов
+ 2
siblings = int(input()) popsicles = int(input()) #your code goes here if siblings<=popsicles: if popsicles%siblings==0: print('give away') else: print('eat them yourself') else: print('eat them yourself') You missed else statement at the last
30th Apr 2020, 12:45 PM
ANJALI SAHU
+ 1
RAJESH SAHU Oh , thanks for that . So , the test case four has siblings greater than the popsicles . That's why it is failed .
30th Apr 2020, 12:49 PM
TeckgeekARJ
TeckgeekARJ - avatar