## Python | Get a list as input from user

We often encounter a situation when we need to take number/string as input from user. In this article, we will see how to get as… Read More »

## Python | Merge elements of sublists

Given two lists containing sublists, the task is to merge elements of sublist of two lists in a single list. Examples: Input: list1 = [[1,… Read More »

## Python | Remove all duplicates and permutations in nested list

Given nested list, the task is to remove all duplicated and permutations in that nested list. Input: [[-11, 0, 11], [-11, 11, 0], [-11, 0,… Read More »

## Python | Remove all digits from a list of strings

Given a list of strings, write a Python program to remove all digits from the list of string. Examples: Input : [‘alice1’, ‘bob2’, ‘cara3’] Output… Read More »

## Python | Remove consecutive duplicates from list

In Python, we generally wish to remove the duplicate elements, but sometimes for several specific usecases, we require to have remove just the elements repeated… Read More »

## Python | Integrity Sorting in two lists

Often during the problem solving we come across to many problems where we need to sort the list. But sometimes we would also want to… Read More »

## Python | Dividing two lists

Sometimes we come across the situations in which we require to apply a particular function to each elements of two lists at similar index. Most… Read More »

## Python | Operation to each element in list

Given a list, we always come across situations in which we require to apply certain function to each element in a list. This can be… Read More »

## Python | Zip different sized list

In Python, zipping is a utility where we pair one list with the other. Usually, this task is successful only in the cases when the… Read More »

## Python | List Initialization with alternate 0s and 1s

The initialization of list with a single number is a generic problem whose solution has been dealt many number of times. But sometimes we require… Read More »

## Python | Split string into list of characters

Given a string, write a Python program to split the characters of the given string into a list. Examples: Input : geeks Output : [‘g’,… Read More »

## Python | Optional padding in list elements

In real world problems, we sometimes require to pad the element of list according to a condition that maximum characters have reached. Padding a number… Read More »

## Python | Position Summation in List of Tuples

Sometimes the data that we receive, is in the form of tuples having data from various sources and we can usually have a use case… Read More »

## Python | Find most frequent element in a list

Given a list, find the most frequent element in it. If there are multiple elements that appear maximum number of times, print any one of… Read More »

## range() to a list in Python

Often times we want to create a list containing a continuous value like, in a range of 100-200. Let’s discuss how to create a list… Read More »