I'm mostly annoyed that 'if len(items) == 0' / 'if len(items) > 0' aren't presented as options.
If we're talking about readability, they're far clearer than either of the options in the article and require no pre-knowledge of truthiness rules.
If we're talking about readability, they're far clearer than either of the options in the article and require no pre-knowledge of truthiness rules.
if not mylist: # 1.061
if len(mylist) == 0: # 1.924