ages = [5, 12, 17, 18, 24, 32] adults = list(filter(lambda x: x >= 18, ages)) print(adults) # [18, 24, 32]