I have the necessity to check if a specific value correspond to the value of a multidimensional dict (specifying the key).
multi_dict = [
{'key1': 'value1', 'key2': 'value2', 'key3': 'value3'},
{'key1': 'value10', 'key2': 'value20', 'key3': 'value30'}
]
I'm coming from a PHP environment and I know that there's a function that does that: array_column There's something like this also for Python?
Possible output specifying key1 in order to check if a value correspond:
[value1, value10]