I have a list that contains dictionaries(my_list) that looks like
[{'name': 'jane', 'number': 123, 'birthday': '04/05/78'},
{'name': 'summer', 'number': 542, 'birthday': '07/01/1990'},
{'name': 'carter', 'number': 003, 'birthday': '12/15/1992'}]
I am trying to filter out results by a birthday
my_filter = [elf for elf in my_list if 'birthday' >= '01/01/1980']
This should eliminate the first entry but when i print out my filter all three entries are still being printed.
How can i compare the string dates (birthday) to filter out data?