2 ms·
There really is no difference except that len() will raise an error if no __len__ method is found on the object.
by megaman821 16y ago
There really is no difference except that len() will raise an error if no __len__ method is found on the object.