0

How I can pass test case #4 in Popsicle challenge with python

Python

9th Aug 2020, 12:18 PM
Purbayan Saha
Purbayan Saha - avatar
9 Answers
+ 4
siblings = int(input()) popsicles = int(input()) #your code goes here print("give away" if popsicles%siblings==0 else "eat them yourself" )
9th Aug 2020, 3:56 PM
Suhail KM
+ 4
By solving the code coach
9th Aug 2020, 12:21 PM
Nilesh
Nilesh - avatar
+ 1
It seems you might be having some issues with your logic. Try using this. print("give away" if (popsicles % siblings ==0) else "eat them yourself")
9th Aug 2020, 1:04 PM
kannan
kannan - avatar
+ 1
Thanx kannan the challenge is solved with your logicâ˜șâ˜șâ˜ș
9th Aug 2020, 1:17 PM
Purbayan Saha
Purbayan Saha - avatar
+ 1
9th Aug 2020, 2:40 PM
kannan
kannan - avatar
+ 1
@kannan tnx bro it helped:)
6th Dec 2020, 2:39 PM
Danayt Girmay Gebreselassie
Danayt Girmay Gebreselassie - avatar