Someone please help!! | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

Someone please help!!

In this popsicle question, my code testing was approved for test 1,4 and 5 but showing wrong on 2 and 3 test but my output is same according to the answer!! https://code.sololearn.com/cBBWWUrn2svI/?ref=app

18th May 2020, 2:34 PM
Tejas Joshi
Tejas Joshi - avatar
2 Respostas
+ 3
https://code.sololearn.com/c8hvDx9Q6Ko6/?ref=app https://code.sololearn.com/cXrwvtE3Qh8L/?ref=app https://code.sololearn.com/cQ31hST5K3w9/?ref=app Check these out
18th May 2020, 2:46 PM
Isaac Duah [Active!]
Isaac Duah [Active!] - avatar
+ 1
siblings = int(input()) popsicles = int(input()) if popsicles % siblings == 0: print ("give away") else : print ("eat them yourself") See this . This will be correct . Actually you are finding reminder by deviding siblings with popsicles. But you need to do opposite
18th May 2020, 2:44 PM
Ayush Kumar
Ayush Kumar - avatar