Popsicles Problem Solution in Python || Sololearn

Published: 10 November 2020
on channel: Codecrafters Hub
300
4

Problem :
You have a box of popsicles and you want to give them all away to a group of brothers and sisters. If you have enough left in the box to give them each an even amount you should go for it! If not, they will fight over them, and you should eat them yourself later.

Task
Given the number of siblings that you are giving popsicles to, determine if you can give them each an even amount or if you shouldn't mention the popsicles at all.

Input Format
Two integer values, the first one represents the number of siblings, and the second one represents the number of popsicles that you have left in the box.

Output Format
A string that says 'give away' if you are giving them away, or 'eat them yourself' if you will be eating them yourself.

Sample Input
3 9

Sample Output
give away


On this page of the site you can watch the video online Popsicles Problem Solution in Python || Sololearn with a duration of hours minute second in good quality, which was uploaded by the user Codecrafters Hub 10 November 2020, share the link with friends and acquaintances, this video has already been watched 300 times on youtube and it was liked by 4 viewers. Enjoy your viewing!