I have a list containing the date and a specific code. I need to return a list with all the duplicated codes except the most recent one. For example:
full_list = ["06-01-22------aa", "06-02-22------aa", "06-02-22------bb", "06-03-22------bb", "06-03-22------cc"]
The desired list should return:
desired_list = ["06-01-22------aa", "06-02-22------bb"]