popsicles community challenge: what's wrong with my code? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Resposta
+ 3
keep it simple: if popsicles % siblings ==0 : print('give away') else: print('eat them yourself')
28th Feb 2021, 5:38 PM
**šŸ‡¦šŸ‡Ŗ|šŸ‡¦šŸ‡Ŗ**
**šŸ‡¦šŸ‡Ŗ|šŸ‡¦šŸ‡Ŗ** - avatar