2020-08-14

Python - Remove duplicates from list

l = [1,1,2,3,1,1,1,4,5,6,1]

l = dict.fromkeys(l).keys()

print(l)


No comments:

Post a Comment