I'm looking for something similar to this question, but in Python.
I have a list with repeated elements:
["Apple", "Orange", "Apple", "Pear", "Banana", "Apple", "Apple", "Orange"]
I'm looking for a list expression or a methodology that will give me:
["Apple 1", "Orange 1", "Apple 2", "Pear 1", "Banana 1", "Apple 3", "Apple 4", "Orange 2"]
Obviously, preserving order is very important.