+ 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 Answers
+ 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!!!