I have a dictionary

```
myDict = {'a': [1, 2, 3, 'cow', {'b': 23}],
         'c': 25
         'd': [4,5,6]}

```

And I want to create a function that would get the values of the keys. This is my code so far:

```
def getValueOf(key, myDict):
for d in myDict:
    if key in d:
        return d[key]

```

This code works only for some dictionaries. I can't seem to wrap my head around another solution.

This is my expected output:

```
getValueOf('b', myDict) ==> 23
getValueOf('d', myDict) ==> [4,5,6]
getValueOf('a', myDict) ==> [1, 2, 3, 'cow', {'b': 23}]

```

Any help would be greatly appreciated!