following my first comment | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

following my first comment

siblings = int(input("how much kids you do have? \n")) popsicles = int(input("how much popsicles you have in the box? \n")) #your code goes here if siblings >= 1 and popsicles > 2 : if (popsicles // siblings ) >= 2 : print("give a way") else : print("eat them yourself!") else : print("please write an effective number!") https://www.sololearn.com/discuss/3234065/?ref=app

18th Aug 2023, 5:18 PM
Oussama Qastal
Oussama Qastal - avatar
3 Réponses
+ 1
What is your question?
18th Aug 2023, 5:31 PM
Lisa
Lisa - avatar
18th Aug 2023, 5:43 PM
Lisa
Lisa - avatar
0
i start challenge in code coach, the problem is as follows : You have a box of popsicles and you want to give them all away to a group of brothers and sisters. If you have enough left in the box to give them each an even amount you should go for it! If not, they will fight over them, and you should eat them yourself later. Task Given the number of siblings that you are giving popsicles to, determine if you can give them each an even amount or if you shouldn't mention the popsicles at all. Input Format Two integer values, the first one represents the number of siblings, and the second one represents the number of popsicles that you have left in the box. Output Format A string that says 'give away' if you are giving them away, or 'eat them yourself' if you will be eating them yourself. Sample Input 3 9 Sample Output give away I've tried with him by python. this was my question Thank you in advance🙏🏼
18th Aug 2023, 5:42 PM
Oussama Qastal
Oussama Qastal - avatar