I'm using the following example to check if an item is in a list:

```
var = 'a'
var_list = ('a','b','c')
if var in var_list:
  do_something()

```

But in my case, what I have is a dictionary and a list of dictionaries:

```
var = {'name': 'John', 'age': 35, 'city': 'Orlando'}
var_list = ( {'name': 'John', 'age': 36, 'city': 'Orlando'} , \
             {'name': 'Alex', 'age': 22, 'city': 'New York'} , \
             {'name': 'Celes', 'age': 24, 'city': 'Vector'} )
if var['name'] in var_list:
  do_something()

```

I need to only check the key 'name' in the comparasion, otherwise if I do `var in var_list` the key `age` will be different and will result in not getting inside the if condition. Is it possible to compare only the `name` key?

Of course, I can iterate and check item by item, but if there is a function or something that will reduce the execution time, it will be great.