Simple, self-explanatory code snippets.
l = [1,1,2,3,1,1,1,4,5,6,1]
l = dict.fromkeys(l).keys()
print(l)
No comments:
Post a Comment