Name a python function to:
(a) delete a given element from the list.
(b) add an element in the beginning of the list
Answer:
- The remove( ) method is used to delete a given element from the list.
- The insert(0,<value> ) method is used to add an element to the beginning of a list.