how to drop elements in a list if they are out of a specific range code example Example: delete all list entries in a range python L2 = [ x for x in L1 if -1 <= x <= 1 ]