In this tutorial you will learn about the Python List Functions and its application with practical example.
Python Built In List Functions
Function | Description |
---|---|
min(list) | It returns the minimum value in the given list. |
max(list) | It returns the maximum value in the given list. |
len(list) | It returns length/size of the list, can also be seen as number of elements in a given list. |
cmp(list1,list2) | It compares the given lists. |
list(sequence) | It takes a sequence object and converts it into a list. |