SyntaxFix
Write A Post
Hire A Developer
Questions
To preserve the order:
l = [1, 1, 2, 2, 3] result = list() map(lambda x: not x in result and result.append(x), l) result # [1, 2, 3]