Re:Python built-ins worth learning (2019)
by adhocmobility on Friday March 11, 2022 @07:38AM
(#30639064)
The second case is preferable if numbers is an Optional[List], which is usually the case when passing lists around as arguments.
This can handle both cases - if numbers is None, or numbers is []
[ Parent
| on HN ]
There are no comments on this comment yet.