Skip to content

Tag Archives: Python-sort

Given a dictionary, write a Python program to get the alphabetically sorted items from given dictionary and print it. Let’s see some ways we can… Read More
Given a list of URL, the task is to sort the URL in the list based on the top-level domain. A top-level domain (TLD) is… Read More
Given a list of strings, A task is to sort the strings in a case insensitive manner. Given below are a few methods to solve… Read More
Sorting has always been quite popular utility with lots of applications everywhere, where Python languages is opted. Python in its language offer a sort function… Read More
Have you ever wanted to find any particular file in a folder, but then completely freak out when you find that folder to be a… Read More
Sorting has quite vivid applications and sometimes, we might come up with the problem in which we need to sort the nested dictionary by the… Read More
Given a string of letters, write a python program to sort the given string in an alphabetical order. Examples: Input : PYTHON Output : HNOPTY… Read More
Sorting has always been a key operation that is performed for many applications and also as a subproblem to many problems. Many variations and techniques… Read More
Problems associated with sorting and removal of duplicates is quite common in development domain and general coding as well. The sorting by frequency has been… Read More
Given a list of string, the task is to sort the list by part of the string which is separated by some character. In this… Read More
The flattening of list of lists has been discussed earlier, but sometimes, in addition to flattening, it is also required to get the string in… Read More
Given a list of non-negative numbers, the task is to sort these integers according to the sum of their digits. Examples: Input : [12, 10,… Read More
Given a list of dictionary, the task is to sort the dictionary by date. Let’s see a few methods to solve the task. Method #1:… Read More
Given a list containing repeated and non-repeated elements, the task is to sort the given list on basis of the frequency of elements. Let’s discuss… Read More
Given a list of lists, the task is to sort a list on the basis of size of sublists. Let’s discuss a few methods to… Read More