3 ms·
gp's approach works best when you know that the argument is a list or tuple (something which can be empty). Of course, due to python's lack of typing, you shoul
by stefco_ 7y ago
gp's approach works best when you know that the argument is a list or tuple (something which can be empty). Of course, due to python's lack of typing, you should only use that approach when the function is being used in well-understood contexts.