PYTHON: Python Programming: Programming Guide For Beginners: LEARN IN A DAY! (Python Programming, Javascript, App Design, PHP, SQL, Python) by Os Swift
Basic List operations
Just like the string, lists can be subjected to the + and * operators for concatinating and repeating the items. The only difference is that, a new list is obtained as a result instead of a string.
Similarly, lists can be subjected to the sequence operations just as in the strings.
Built-in functions
The following are the list functions supported by Python:
1.cmp(list1, list2)
This function is used for comparing the items of two lists.
2.len(list)
This function is used for obtaining the listâs length.
3.max(list)
This function is used for returning the element that has the maximum value in the list.
4.min(list)
This function is used for returning the element that has the maximum value in the list.
5.list(seq)
A tuple can be converted into a list using this function.
PYTHON: Python Programming: Programming Guide For Beginners: LEARN IN A DAY! (Python Programming, Javascript, App Design, PHP, SQL, Python) by Os Swift.epub