## 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 | Min and Max value in list of tuples

The computation of min and max value is a quite common utility in any programming domain be it development or any other field that includes… 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 »

## Python | Merge list elements

Sometimes, we require to merge some of the elements as single element in the list. This is usually with the cases with character to string… Read More »

## Python | Concatenate two lists element-wise

Sometimes we come across this type of problem in which we require to leave each element of one list with the other. This type of… Read More »

## Python | Slicing list from Kth element to last element

Python list slicing slices the list from start index till end – 1, specified as list elements. So its tricky when we require to also… Read More »

## Python | Return new list on element insertion

The usual append method adds the new element in the original sequence and does not return any value. But sometimes we require to have a… Read More »