## Python | Altering duplicate values from given list

Many times we deal with the lists having identical numbers as a sequence and we wish to just keep the 1st occurrence of element and… Read More »

## Python | Remove False row from matrix

Sometimes, while handling data, especially in Machine Learning domain, we need to go through a lot of incomplete or empty data. We sometimes need to… Read More »

## Python | Find elements of a list by indices

Given two lists with elements and indices, write a Python program to find elements of list 1 at indices present in list 2. Examples: Input… Read More »

## Python | Three element sum in list

The problem of getting the number of pairs that lead to a particular solution has been dealt many times, this article aims at extending that… Read More »

## Python | Convert list into list of lists

Given a list of strings, write a Python program to convert each element of the given list into a sublist. Thus, converting the whole list… Read More »

## Python | Reverse sequence of strictly increasing integers in a list

Given a list of integers, write a Python program to reverse the order of consecutively incrementing chunk in given list. Examples: Input : [0, 1,… Read More »

## Python | Convert list of numerical string to list of Integers

Many times, the data we handle might not be in the desired form for any application and has to go through the stage of preprocessing.… Read More »

## Python | Removing strings from tuple

Sometimes we can come across the issue in which we receive data in form of tuple and we just want the numbers from it and… Read More »

## Python | Delete elements with frequency atmost K

There are many methods that can be employed to perform the deletion in the list. Be it remove function, pop function and many other functions.… Read More »

## Python | Find all distinct pairs with difference equal to k

Given a list of integers and a positive integer k, write a Python program to count all distinct pairs with difference equal to k. Examples:… Read More »

## Python | Remove elements of list that are repeated less than k times

Given a list of integers (elements may be repeated), write a Python program to remove the elements that are repeated less than k times. Examples:… Read More »

## Python | Duplicate substring removal from list

Sometimes we can come to the problem in which we need to deal with certain strings in a list which are separated by some separator… Read More »

## Python | Remove duplicates from nested list

The task of removing duplicates many times in recent past, but sometimes when we deal with the complex data structure, in those cases we need… Read More »

## Python | Check if a list is contained in another list

Given two lists A and B, write a Python program to Check if list A is contained in list B without breaking A’s order. Examples:… Read More »

## Python | Remove matching tuples

The problem of removing the matching elements from two lists and constructing a new list having just the filtered elements not present in 2nd list… Read More »