Code coach | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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 ….

16th Feb 2023, 3:06 PM
Александра Бондаренко
Александра Бондаренко - avatar
2 Answers
+ 4
Task Goal is print "give away" if popsicles can be evenly distributed to siblings, otherwise print "eat them yourself".
16th Feb 2023, 3:21 PM
Jayakrishna 🇮🇳
+ 1
Jayakrishna 🇮🇳 oh, probably I just haven’t learn how to make this statement (if can be evenly distributed). Thanks!!!
16th Feb 2023, 3:32 PM
Александра Бондаренко
Александра Бондаренко - avatar