+ 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")
1 Resposta
+ 3
keep it simple:
if popsicles % siblings ==0 :
print('give away')
else:
print('eat them yourself')