Comment
Comment by adhocmobility
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 []
Be the first to share your thoughts.