I have a list that looks something like,
inventory = ['Note', 'Key', 'Coin x5', 'Torch', 'Coin x8']
And I need the program to automatically remove the older duplicate string, in this case 'Coin x5', but I'm having trouble because the two strings aren't an exact match. If it helps, this list exclusively gets added to via the append function and does NOT get sorted alphabetically or any other way, so older items always have lower indexes than newer ones.