+ 2
Code coach
Could someone help me with “popsicles”? (It’s a case from code coach) My code is: siblings = int(input()) popsicles = int(input()) x = (popsicles//siblings) y = (popsicles - x) print("eat them yourself", x) print("give away", y) I can’t understand what I did wrong :( What’s in incorrect? Maybe I didn’t get what was the goals in this case ….
2 Respostas
+ 4
Task Goal is print "give away" if popsicles can be evenly distributed to siblings, otherwise print "eat them yourself".
+ 1
Jayakrishna 🇮🇳 oh, probably I just haven’t learn how to make this statement (if can be evenly distributed). Thanks!!!