You can try this:
result = [{'name': 'paul', 'age': '26', 'hometown': 'AU', 'gender': 'male'},
{'name': 'mei', 'age': '27', 'hometown': 'NY', 'gender': 'female'},
{'name': 'smith', 'age': '14', 'hometown': 'NY', 'gender': 'male'},
{'name': 'raj', 'age': '13', 'hometown': 'IND', 'gender': 'male'}]
a=[]
for i, test in enumerate(result):
for key,value in test.items():
if key == 'hometown':
if 'NY' in value:
a.append(result[i])
print(a)
output:
[{'name': 'mei', 'age': '27', 'hometown': 'NY', 'gender': 'female'}, {'name': 'smith', 'age': '14', 'hometown': 'NY', 'gender': 'male'}]