GH avatar Bite 143. Look up a value in 3 dictionaries

In this Bite you are presented with 3 dictionaries. Complete get_person_age that takes a name 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, return Not 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 over group2 and group2 takes precedence over group1). Check out the standard library ... :) - have fun!

Will you be Pythonista #72 to crack this Bite?
It takes an average of ~32 minutes to solve this Bite (submissions 5-240 min).
Pythonistas rate this Bite 2.0 on a 1-10 difficulty scale.
» You can do it! 😌

Buy Now Login and get coding
We use Python 3.7