Simple, self-explanatory code snippets.
l = [1,2,3,4,5,1,1,1,2]
print(list(filter(lambda x: x!=1, l)))
No comments:
Post a Comment