2020-08-14

Python - Remove list duplicate values

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

print(dict.fromkeys(l).keys())



No comments:

Post a Comment