Is there a nice way to remove elements from a list, by their attributes?
Example:
lis = [['element1', 12], ['element2', 2], ['element3', 12], ['element4', 36], ['element5', 12]]
And I want to get this list:
new_lis = [['element1', 12], ['element2', 2], ['element4', 36]]
I am looking for a short and elegant solution, maybe a module I am not familiar with?