Python includes the following list functions

everytopichub
0

 Python includes the following list functions 

Function with Description 

1 cmp(list1, list2) Compares elements of both lists.

 2 len(list) Gives the total length of the list. 

3 max(list) Returns item from the list with max value. 

4 min(list) Returns item from the list with min value. 

5 list(seq) Converts a tuple into list.

Post a Comment

0Comments

Post a Comment (0)