What is the difference between append and extend method for list in python

1,507 views · Published 20 April 2017 · 1:43 · Indexed 26 October 2026

Channel: HowTo · 2017 · Education

Watch on YouTube

append method used to add item in list and extend method also used for same except the way list item is added.
Append method will add list object as it is whereas extend method flattened the list object then their item will be added.

More from this channel