Login and get codingIn this Bite you are presented with 3 dictionaries. Complete
get_person_age
that takes aname
as argument and returns the age if in any of the 3 dictionaries. The lookup should be case insensitive, so tim, Tim and tiM should all yield 30. If not in any of the dictionaries, returnNot found
.Note that some persons are in 2 of the 3 dictionaries. In that case return the age of the last dictionaries (so
group3
takes precedence overgroup2
andgroup2
takes precedence overgroup1
). Check out the standard library ... :) - have fun!
439 out of 440 users completed this Bite.
Will you be the 440th person to crack this Bite?
Resolution time: ~29 min. (avg. submissions of 5-240 min.)
Our community rates this Bite 3.36 on a 1-10 difficulty scale.
» You can do it! 😌