I can't pass one test case in this
You are camping alone out in the jungle and you hear some animals in the dark nearby. Based on the noise they make, determine which animals they are. Task: You are given the noises made by different animals that you can hear in the dark, evaluate each noise to determine which animal it belongs to. Lions say 'Grr', Tigers say 'Rawr', Snakes say 'Ssss', and Birds say 'Chirp'. Input Format: A string that represent the noises that you hear with a space between them. Output Format: A string that includes each animal that you hear with a space after each one. (animals can repeat) Sample Input: Rawr Chirp Ssss Sample Output: Tiger Bird Snake Here is my solution :- list=[] list= input().split(" ") for i in range(len(list)): if list[i]=="Grr": print("Lion",end=(" ")) elif list[i]=="Rawr": print("Tiger",end=(" ")) elif list[i]=="Ssss": print("Snake",end=(" ")) elif list[i]=="Chrip": print("Bird",end=(" "))