DEV Community

Discussion on: What determines the truthiness of an object in Python?

Collapse
 
paddy3118 profile image
Paddy3118

It is pythonic to expect empty collections to be False. Empty built in collections such as lists, strings, tuples, dicts, sets, etc are all False.