Skip to content

extend in python

Understanding List is one of the most important thing for anyone who just started coding in Python. You may need to add an element to the list whether at the end or somewhere in between. Although it can be done manually with few lists of code, built in function come as a great time saver. There are 3 in-build method to add an element in a list. Beginners sometimes got… Read More »3 Methods to Add Elements to List in Python || Append vs Extend vs Insert methods of Python

3 Methods to Add Elements to List in Python || Append vs Extend vs Insert methods of Python

Have you ever wondered: “How to add elements of one list to another?” The extend method of Python helps you to do exactly this.It is an in-build method that adds elements of specified list to the end of the current list. Since it is a method of class list, you use it by using dot(.) Operator on list. It doesn’t return any value but add the content to the existing… Read More »Extend Method in Python List

Extend Method in Python List