Searching for a specific value within a list of dictionaries
I need to be able to print all instances of a name within the list of dictionaries. I can’t seem to be able to print them in the desired format. It also doesn’t work when it’s in lowercase and the name is in uppercase. def findContactsByName(name): return [element for element in contacts if element[‘name’] ==… Read More Searching for a specific value within a list of dictionaries