Popsicles | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Popsicles

I get error.। Why. siblings = int(input()) popsicles = int(input()) #your code goes here if popsicles == siblings : print ("give away") else : print ("eat them yourself")

25th Apr 2022, 6:06 PM
Monish
Monish - avatar
2 Answers
+ 2
Read the task description again: we give the popsicles away when all siblings can get the same number of popsicles
25th Apr 2022, 6:10 PM
Lisa
Lisa - avatar
+ 1
Monish Khan You want to divide popsicles in equal part so what you will do? Suppose you have 9 popsicles and you want to divide in 3 equal part then what should be check?
25th Apr 2022, 6:12 PM
A͢J
A͢J - avatar