+ 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")
4 Respuestas
+ 8
you have a typo in the 2nd print()
+ 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.
0
Lisa Thanks I didn't see that e at the end
0
Rain thanks for your advice
Hahaha I didn't notice the title's typo cause I was moving when I wrote it