0

siblings = int(input()) popsicles = int(input()) #your code goes here if popsicles % 2 == 0: print("give away") else:

Can anyone plz tell me that for the fourth test case of popsicle is not working ? Last line complete else: print("eat yourself")

6th Jul 2022, 4:42 AM
shifa
shifa - avatar
2 Respuestas
+ 3
Hi shifa Maybe you should think about how to append your code… However: I can’t see you are using the variable ’siblings’ in your code. What about try use sibling instead of your constant 2 in your code. How will that affect your result?
6th Jul 2022, 5:27 AM
Per Bratthammar
Per Bratthammar - avatar
+ 1
shifa What about to use of siblings in your code? And please check statement what you have to print. there is "eat them yourself"
6th Jul 2022, 5:52 AM
A͢J
A͢J - avatar