2 ms·
I am surprised nobody mentioned this yet. filter(None, [0 1, 2, 3, False, None, 5, 6, 7]) Here None is the same as bool()
by est 11y ago
I am surprised nobody mentioned this yet.
filter(None, [0 1, 2, 3, False, None, 5, 6, 7])
Here None is the same as bool()