Comment Comment by oefrha That wouldn't make any sense. >>> min(['a', 'b']) 'a' >>> min(['a']) 'a' >>> min([]) float('-inf') # ??? An empty list is not a list of numbers. It's not a list of anything.(You can use typing hinting to indicate the type of an empty list, but type hints are ignored by the interpreter.) parent oefrha 6 years ago
(You can use typing hinting to indicate the type of an empty list, but type hints are ignored by the interpreter.)