Spot the bug in sensor filtering

from map, filter and reduce
Python 3.14 beginner 4 min 1 issue to find

This function should remove only None from a sensor stream. Find the bug.

Python
def keep_readings(values):
    return list(filter(None, values))

print(keep_readings([0, None, 4, False]))
Open in playground
Report an error