I have the following list:
list = [{'Jim': {'age': 20, 'lastname': 'Smith'}}, {'Sarah': {'age': 25, 'lastname': 'Jones'}}, {'Bill': {'age': 30, 'lastname': 'Lee'}}]
I want to be able to filter list by Key, so for example if i want the the Sarah dict, i want the output to be that dictionary. for example:
output = {'Sarah': {'age': 25, 'lastname': 'Jones'}}