Blog

What is the output of the code below?

names = [“Al”, “Sue”, “John”, “Jane”, “Ben”]
filtered = list(filter(lambda n: n.startswith(“b”), names))
print(filtered)