Here is my list with multiple dictionaries inside:
tags: [{
'key': 'Environment',
'value': 'Production'
}, {
'key': 'Environment',
'value': 'Acceptance'
}, {
'key': 'Environment',
'value': 'Test'
}, {
'key': 'Environment',
'value': 'Development'
}, {
'key': 'Environment',
'value': 'Sandbox'
}]
Here the key value is always 'Environment' for all dictionaries. I need to check if the key is Environment, check if values are Production,Test,Development and Sandbox. If yes, print something.
How can achieve this ?