Python - Clear duplicate elements from a list of lines

A sort of work-around is to convert the lines to “strings” and compare the strings like so:

Inspired by:

1 Like