For example, if I had:
a = ["apples", "bananas", "cucumbers", "bananas"]
How could I remove the duplicate "bananas" so that:
a = ["apples", "bananas", "cucumbers"]
Also, if I had:
a = ["apples", "bananas", "cucumbers"]
b = ["pears", "apples", "watermelons"]
How could I remove the duplicate "apples" from both lists so that:
a = ["bananas", "cucumbers"]
b = ["pears", "watermelons"]