I have a list of dicts e.g.
[{'name':'Bernard','age':7},{'name':'George','age':4},{'name':'Reginald','age':6}]
I'd like to check to see if a string value is the same as the 'name' value in any of the dicts in the list. For example 'Harold' would be False, but 'George' would be True.
I realise I could do this by looping through each item in the list, but I was wondering if there was a more efficient way?