I am having trouble. This is my code, I would like to check if a specific value exist in the dictionary. This is my code. I think the logic is right but the syntax is not correct. Please help me. Thank you.
a = [
{'amount':200, 'currency':'php'},
{'amount':100, 'currency':'usd'}
]
result1 = 200 in a
result2 = 'php' in a
result = result1 and result2
print result
I am expecting to have a result of 'True'