Page 76 - Modular v1.1 Pyhton
P. 76
Function Explanation
len(list) Returns the total length of the list
max(list) Returns the largest element from the given list
min(list) Returns the smallest element from the given list
SLICING THE LIST
List slicing refers to a part of list. In python list slicing is done by using the Slicing operator(:).
Syntax: [beg:end]
here,
beg is the starting point
end is the stopping point which is not included
Program 7: Slicing operator illustration.
On running the above program, you will get the following output:
CHANGING THE LIST ELEMENT
Lists is mutable which means the elements of a list can be changed or new elements can be
added into a list by using an assignment operator (=).
Program 8: Changing elements of a list.
74 Touchpad MODULAR (Version 1.0)

