popsicles community challenge: what's wrong with my code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

popsicles community challenge: what's wrong with my code?

# test case 5 keeps failing and I dont know how to fix it :( # here is my code (below) siblings = int(input()) popsicles = int(input()) if popsicles > siblings and (popsicles % siblings) == 0: print ("give away") elif popsicles < siblings or (popsicles % siblings) != 0: print ("eat them yourself")

28th Feb 2021, 5:22 PM
cal
1 Answer
+ 3
keep it simple: if popsicles % siblings ==0 : print('give away') else: print('eat them yourself')
28th Feb 2021, 5:38 PM
**🇦🇪|🇦🇪**
**🇦🇪|🇦🇪** - avatar