a = [10, 20, 30, 40, 20, 30, 40, 20, 70, 20] a = [x for x in a if x != 20] a: [10, 30, 40, 30, 40, 70]