scores = [70, 60, 80, 90, 50] filtered = filter(lambda score: score >= 70, scores) print(list(filtered)) # Output: [70, 80, 90]
filtered_numbers = [number for number in numbers if number < 3]