## Python | Ways to sort a zipped list by values

Zipped lists are those lists where several lists are mapped together to form one list which can be used as one entity altogether. In Python… Read More »

## Python | Convert a string representation of list into list

Many times, we come over the dumped data that is found in the string format and we require it to be represented into the actual… Read More »

## Python | Convert list of string into sorted list of integer

Given a list of string, write a Python program to convert it into sorted list of integer. Examples: Input: [’21’, ‘1’, ‘131’, ’12’, ’15’] Output:… Read More »

## Python | Ways to create triplets from given list

Given a list of words, write a Python program to create triplets from the given list. Examples : Input: [‘Geeks’, ‘for’, ‘Geeks’, ‘is’, ‘best’, ‘resource’,… Read More »

## Python | Print list elements in circular range

Given a list of elements, the task is to print element in group of k till n-iteration in circular range. Examples: Input: list = [1,… Read More »

## Python | Print the common elements in all sublists

Given a list of lists, the task is to find the elements which are common in all sublist. There are various approaches to do this… Read More »

## Python | Remove all sublists outside the given range

Given, list of lists and a range, the task is to traverse each sub-list and remove sublists containing elements falling out of given range. Examples:… Read More »

## Python | Filter even values from a list

Given a list of numbers, the task is to make a new list containing only even values. Examples: Input: list = [1, 2, 3, 4,… Read More »

## Python | Find maximum value in each sublist

Given list of lists in Python, write a Python program to find maximum value of list each sub-list. Examples: Input : [[10, 13, 454, 66,… Read More »

## Python | Make a list of intervals with sequential numbers

Given a list of sequential numbers, Write a Python program to convert the given list into list of intervals. Examples: Input : [2, 3, 4,… Read More »

## Python | Spilt a sentence into list of words

Given a Sentence, write a Python program to convert the given sentence into list of words. Examples: Input : [‘Hello World’] Output : [‘Hello’, ‘world’]… Read More »

## Python | Convert case of elements in a list of strings

Given a list of strings, write a Python program to convert all string from lowercase/uppercase to uppercase/lowercase. Input : [‘GeEk’, ‘FOR’, ‘gEEKS’] Output: [‘geeks’, ‘for’,… Read More »

## Python | Convert a list into tuple of lists

We are given a list, the task is to convert the list into tuple of lists. Input: [‘Geeks’, ‘For’, ‘geeks’] Output: ([‘Geeks’], [‘For’], [‘geeks’]) Input:… Read More »

## Python | Remove unordered duplicate elements from a list

Given a list, the task is to remove the duplicate elements. All the elements which are not in same order but made of same characters/numbers… Read More »

## Python | Average of each n-length consecutive segment in a list

Given a list, the task is to find the average of each n-length consecutive segment where each segment contains n elements. Example: Input : [1,… Read More »