Python’s list: What is the difference Between methods Append and Extend?

Here in this tutorial, We will discuss What is the difference between Python’s list methods append and extend? As both are used for adding elements in existing mutable lists in Python Ways To Add Elements In An Existing List At times we need to add some elements to an existing list whereas at some times … Read more

How Can I Concatenate Two Lists In Python?

Now Here we are going to discuss more How can I concatenate two lists in Python? There are two ways to do so first can be we can simply add both the list using + (Plus Operator) where we can simply add them as two strings, and we can also use the inbuild function extend … Read more

List Comprehension in Python – Explained with Examples

In this post we will learn about the basic of list data-type in python, creating list in python and list comprehension.   List in Python: List is a changeable and sequenced data type which allows it to be indexed and sliced. Lists are containers used to store heterogeneous values such as integers, floats, strings, tuples, … Read more

%d bloggers like this: