Page 77 - Modular v1.1 Pyhton
P. 77
On running the above program, you will get the following output:
ADDING AN ELEMENT TO A LIST
An element is added to a list by using the append( ) method, it’s a built-in Python method.
In case if you want to add more than one elements to a list, then you can use extend( ) method.
Program 9: To add elements to a list.
On running the above program, you will get the following output:
SOME MORE PROGRAMS
Program 10: Python built-in functions.
List in Python 75

