var = ["", True, False, [True], {}]
print(len(list(filter(None, var))))
So‘rovnoma
- 1
- 2
- True
- SyntaxError