
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
ChannelAmulya's AcademyDescription 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
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.
- Channel
- Amulya's Academy
- Category
- Education
- Duration
- 8:29
- Published
- October 29, 2018
- Views
- 41,063
- Likes
- 913
Tags
Share
This tutorial in other languages
- FRPython Tutorial - append vs étendre les méthodes
- ESTutorial de Python - append vs ampliar los métodos
- PTPython Tutorial - append vs estender os métodos
- ITPython Tutorial - accodamento vs estendere i metodi
- DEPython Tutorial - append vs Methoden erweitern
- NLPython Tutorial - append vs breiden methoden
- RUУчебник Python - Append против расширения методов
- PLPython Tutorial - Dołącz vs przedłużyć metod
- JAPythonのチュートリアル - 拡張メソッド対アペンド
- ARبيثون دروس - إلحاق مقابل تمديد الطرق
- HIअजगर ट्यूटोरियल - संलग्न बनाम तरीकों का विस्तार
- IDPython Tutorial - append vs memperpanjang metode