Computer Science

Do functions max( ), min( ), sum( ) work with all types of lists.

Python List Manipulation

36 Likes

Answer

No, for max() and min() to work on a list, the list must contain all elements of same type (non-complex type) and for sum() to work, the list must contain the elements which can be added such as numbers.

Answered By

19 Likes


Related Questions