Q. What will be the output of the following Python code?
Code:l=[1, 0, 2, 0, 'hello', '', []] list(filter(bool, l))
β
Correct Answer: (C)
[1, 2, ‘hello’]
l=[1, 0, 2, 0, 'hello', '', []] list(filter(bool, l))
You must be Logged in to update hint/solution