I have a list of duplicates which can have different capitalisation. For example:
li = ['Peter', 'PETER']
I tried:
[out.append(x) for x in li if x not in out]
Which works well for the same case capitalisation but not different.
Help would be appreciated.