siblings = int(input()) popsicles = int(input()) #your code goes here if popsicles % 2 == 0: print("give away") else: | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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 Respostas
+ 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