I have a list in python which has below data . each data represent a table name
[tablename_20211011, tablename_20201010, tablename_20211009, tablename_20211009, tablename_20211008]
20211011 -- this is the date when table got created how i can fetch the table names which are created in last 1 year python.
if crteria is 1 yr then result should be tablename_20211011,tablename_20211009, tablename_20211008,tablename_20211009