I am trying to get a new list called new_colors where it only has [['orange', 'green'], ['purple', 'red'] ] removing the duplicates from my original list colors. Duplicates refers to at least one repeated element in the list. For example, orange is repeated twice in two different lists so one of the lists is removed and put into a new list called new_colors.

colors = [['orange', 'green'],['orange', 'yellow']['purple', 'red'], [ 'brown', 'red' ]]

This is what i came up with:

new_colors = []

for i in colors:
if i not in new_colors:
new_colors.append(i)

print(new_colors))