+ 1

Izzy the Iguana beoblem

I'm trying to solve izzy the iguna broblem with python but I faced an issue, my code doesn't fit test case number 4 and 5 where the rest cases is correct, please simeone help me to fix that. This is my code snacks_points = {"Lettuce":5, "Carrot":4,"Mango":9, "Cheeseburger":0} points = 0 snacks = input().split(" ") for snack in snacks: points += snacks_points[snack] if points >= 10: print("Come on Down!") else: print("Time to waite")

14th Apr 2024, 3:31 PM
KHEMICI Nabil
KHEMICI Nabil - avatar
4 Antworten
+ 8
you have a typo in the 2nd print()
14th Apr 2024, 3:33 PM
Lisa
Lisa - avatar
+ 2
KHEMICI Nabil , What I usually do is copy the output strings from the description and paste them into my code to avoid introducing a new opportunity for human error by manually retyping them. You also have a typo in the title of this question.
14th Apr 2024, 6:54 PM
Rain
Rain - avatar
0
Lisa Thanks I didn't see that e at the end
14th Apr 2024, 6:12 PM
KHEMICI Nabil
KHEMICI Nabil - avatar
0
Rain thanks for your advice Hahaha I didn't notice the title's typo cause I was moving when I wrote it
14th Apr 2024, 9:04 PM
KHEMICI Nabil
KHEMICI Nabil - avatar