Let's say I have a list with a dictionary with and `id`, `score` and `key`. I would like to create a method do return the score given the `key` using lambda functions.

This method suffices the problem:

```
def my_search(txt):
    for i in my_dictionary:
        if i['key'] == txt:
            return i['score']

```

But I'd like to use lambda functions to do that. I've tried to use lambda with a filter, but it doesn't seem to work. How can I proceed?

I have something like

`[{'id': 1, 'score': 8.321, 'key': 'stv'}, {'id': 1, 'score': 6.321, 'key': 'mrk'} ... ]`