What's wrong with my code. Practicing but keeps showing me try again | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What's wrong with my code. Practicing but keeps showing me try again

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 Here's my answer siblings = int(input()) popsicles = int(input()) if popsicles % siblings == 0: print("giveaway") else: print("eat them yourself") #your code goes here Sample Output give away

6th Dec 2021, 12:58 PM
Bobby Richard
5 Answers
+ 3
The output string must be exactly the same as in the task description: 'give away' is different from 'giveaway'
6th Dec 2021, 1:37 PM
Lisa
Lisa - avatar
+ 3
I think you forgot a blank space in 'give away'
6th Dec 2021, 1:07 PM
Lisa
Lisa - avatar
+ 3
Bobby Richard Read output format clearly 'give away' while writing print statement you should write 'give away'. Blank space , quotation marks or special characters should be in a proper format. Input string should be same as Output string.
6th Dec 2021, 2:45 PM
RšŸ’ šŸ‡®šŸ‡³
RšŸ’ šŸ‡®šŸ‡³ - avatar
0
I don't get it
6th Dec 2021, 1:29 PM
Bobby Richard
0
Lisa thanks, now I see my error
6th Dec 2021, 5:37 PM
Bobby Richard