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
8 Respostas
+ 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
+ 2
Also you may try using siblings = int(input()) popsicles = int(input()) if popsicles % siblings == 0: print("give away") else: print("eat them yourself")
19th Dec 2021, 5:40 AM
Takudzwa A Svosve
Takudzwa A Svosve - avatar
+ 2
PyNon , great thinkers think alike lol
21st Dec 2021, 6:09 PM
Takudzwa A Svosve
Takudzwa A Svosve - 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