+ 1

[Answered] Jungle Camping Python3

I was trying the code coach problem but the test cases 2 to 5 are not right. My output is the same as the required output but here I am. Here is my code: noises = { "Grr": "Lion", "Rawr": "Tiger", "Ssss": "Snaķe", "Chirp": "Bird" } noises_herd = input() print(" ".join([noises[noise] for noise in noises_herd.split()]))

2nd Nov 2020, 1:05 PM
Harsh Kothari
Harsh Kothari - avatar
3 odpowiedzi
+ 1
What is the cherecter you used in 'Snake '..? It's not a 'k'.. Something else. Use the correct 'k' in 'Snake'
2nd Nov 2020, 2:06 PM
Jayakrishna 🇮🇳
+ 2
Your code is correct. Fix the letter ķ to normal k
2nd Nov 2020, 2:11 PM
Yurii Ostapenko
Yurii Ostapenko - avatar
0
Ok thank u both very much! :D
2nd Nov 2020, 5:36 PM
Harsh Kothari
Harsh Kothari - avatar