Q. What will be the output of the following code snippet?
Code:
a = [[], "abc", [0], 1, 0] print(list(filter(bool, a)))
β
Correct Answer: (A)
['abc', [0], 1]
a = [[], "abc", [0], 1, 0] print(list(filter(bool, a)))
You must be Logged in to update hint/solution