Say I have a list of dictionaries.
listOfDict = [{"name": "Joel","Age": "10","Grade": "A"},{"name": "Adam","Age": "11","Grade": "B"},{"name": "Rachel","Age": "10","Grade": "B"}]
I want to get a list of names whose age is 10. So output would look like this.
listOfNames = ["Joel", "Rachel"]
Is there a way to do this without using for loops or if conditions. I tried to use Lambda function but to no avail.