append() and extend() methods ??

Total Post:57

Points:285
Python 
 365  View(s)
Ratings:
Rate this:
  1. Post:57

    Points:285
    append() and extend() methods ??

    Differentiate between append() and extend() methods:

    Both append() and extend() methods are the methods of list. These methods are used to add the elements at the end of the list. 

    *) append(element) – adds the given element at the end of the list which has called this method. 

    *) extend(another-list) – adds the elements of another-list at the end of the list which is called the extend method.

Answer