I am using python 2.7 and i have the following list:

```
list1 = ['switchport port-security maximum', 'switchport port-security aging']

```

And then i have a dictionary like this:

```
my_dict = {}

my_dict["GI2/1/1"] = [
'switchport port-security maximum 10', 
'switchport port-security maximum 3 vlan access', 
'switchport port-security maximum 1 vlan voice', 
'switchport port-security aging time 25', 
'switchport port-security aging type inactivity', 
'switchport port-security'
]

my_dict["GI2/1/2"] = [
'switchport port-security maximum 5', 
'switchport port-security maximum 5 vlan access', 
'switchport port-security maximum 3 vlan voice', 
'switchport port-security aging time 20', 
'switchport port-security aging type inactivity', 
'switchport port-security'
]

my_dict["GI2/1/3"] = [
'switchport port-security maximum 10', 
'switchport port-security maximum 3 vlan access', 
'switchport port-security maximum 1 vlan voice',  
'switchport port-security'
]

```

I am trying to find a way that i can search the values but it would need to match on both entries in list1

I have the following code, but it will match one and then break out, i know why its breaking out, but i can't figure out a way to force it to match on both entries and then break out. I know i can use all() to match everything exactly but i'm looking to just see if both those entries exist.

```
for name, val in my_dict.iteritems():
    for v in val:
        for i in list1:
            if i in v:
                print name
                break

```

The goal is to only output GI2/1/1 and GI2/1/2 because the GI2/1/3 doesn't match on both entries