3 ms·
tldr: do not use 'if len(list) == 0', use 'if not list' ! You just have to not write any bug in your code. Also, use type checking everywhere. And rewrite your
by JackSlateur 2y ago
tldr: do not use 'if len(list) == 0', use 'if not list' !
You just have to not write any bug in your code. Also, use type checking everywhere. And rewrite your mind, too.
The benefits are worth it .. ! Oh well;
- bogwog 2y ago> Also, use type checking everywhere I can't think of anything more Pythonic than that!