17 out of 17 users completed this Bite ...
Will you be Pythonista #18 to crack this Bite?
Average Bite difficulty 1-10 rating: 1.5
» You can do it! 😌
In this Bite you are presented with 3 dictionaries. Complete
get_person_agethat takes a
nameas 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, return
Note that some persons are in 2 of the 3 dictionaries. In that case return the age of the last dictionaries (so
group3takes precedence over
group2takes precedence over
group1). Check out the standard library ... :) - have fun!