Skip to content

Tag Archives: python-list

In this article, we will discuss different ways to iterate the list of tuples in Python. It can be done in these ways: Using Loop.… Read More
In this article, we will discuss how to append the dictionary to the list data structure in Python. Here we will discuss: Appending a dictionary… Read More
In this article, we will discuss how to convert a List of tuples to multiple lists. We can convert lit of tuples to multiple lists… Read More
The Python’s List extend() method iterates over an iterable like string, list, tuple, etc., and adds each element of the iterable to the end of… Read More
The Python List append() method is used for appending and adding elements to the end of the List.  Syntax: list.append(item) Parameters: item: an item to… Read More
The Python List clear() method is used for removing all items from the List.  Syntax: list.clear() Parameters: The clear() method doesn’t take any parameters Returns:… Read More
In this article, we are going to discuss ways in which we can create a list of dictionaries in Python.  A list of dictionaries means,… Read More
In this article, we will discuss multiple ways by which we can create a list of tuples in Python. Method 1: Using list() and tuple()… Read More
Python Programming language makes everything easier and straightforward. Effective use of its built-in libraries can save a lot of time and help with faster submissions… Read More
Given a string S consisting of lowercase English alphabets, the task is to print the longest word present in the given string in python. Examples:… Read More
Prerequisite: Truthy vs Falsy Values in Python In Python, the value that evaluates to False is considered as a Falsy value. The value such as… Read More
Lists: are just like dynamic sized arrays, declared in other languages (vector in C++ and ArrayList in Java). Lists need not be homogeneous always which… Read More
Lists are just like dynamically sized arrays, declared in other languages (vector in C++ and ArrayList in Java). Lists need not be homogeneous always which… Read More
In python del is a keyword and remove(), pop() are in-built methods. The purpose of these three are same but the behavior is different remove()… Read More
Prerequisite: Python Itertools There are several ways to get all combinations for a list of objects in python. This problem has already a recursive solution.… Read More