HDTutorial
EN
Python Tutorial - append vs extend methods

The creator does not allow this video to be played on other websites. You can watch it directly on YouTube.

Python Tutorial - append vs extend methods

41,063 views October 29, 2018 8:29

Watch on YouTube
ChannelAmulya's Academy

Description from the creator

In this Python Programming video tutorial you will learn the basic difference between append and extend methods in detail.

Here in this tutorial first we'll see what is append method, this append method is used to add the element at the end of the list.
So next we discussed about the extend method, this method is used to add the elements at the end of the list.

The difference between append and extend is
in the append we will add single element at the end of the list but here in the extend we will append the all the elements of the iterables .And in append we can add any list, string or any number to the list, but in extend only we can add the elements of a iterables .
So third difference is in the append method the length of the list will be incremented by one. that's because in the append function we will add single value at the end of the list. So length of the list will be incremented by 1, but in extend method length increment will be based on how many elements present in that iterables .


For more free tutorials on computer programming
facebook.com/AmulsAcademy
twitter.com/AmulsAcademy

About this tutorial

Amulya's Academy published this 8:29 video tutorial on October 29, 2018. It has been watched 41,063 times on YouTube.

Category
Education
Duration
8:29
Published
October 29, 2018
Views
41,063
Likes
913

Tags

Share

This tutorial in other languages