Skip to content

Category Archives: Python Programs

Given a list arr[] consisting of N dictionaries, the task is to find the sum of unique keys from the given list of the dictionary.… Read More
Given a dictionary arr consisting of N items, where key and value are both of integer type, the task is to find the sum of… Read More
Given a string S of length N, representing a sentence, the task is to print the words with the highest and lowest average of ASCII… Read More
In this article, we will discuss how to compare two dictionaries in Python. As we all know what is a dictionary, but sometimes we may… Read More
Given a Matrix, the task here is to first select an element from each row in such a manner that when taken in exact order… Read More
Given the number of seconds, the task is to write a Python program to calculate the date, month, and year in the format MM-DD-YYYY that… Read More
Given two positive integers a and b, the task is to write a program in python to find all pairs of consecutive odd numbers which… Read More
Given an array arr[], the task is to combine all the elements in the array sequentially and sort the digits of this number in ascending… Read More
Given an integer N, the task is to print all the repeating digits present in N in sorted order. Examples:Attention reader! Don’t stop learning now.… Read More
Given a python dictionary, the task si to count even and odd numbers present in the dictionary. Examples:Attention reader! Don’t stop learning now. Get hold… Read More
Given an integer N, the task is to sort the digits in ascending order. Print the new number obtained after excluding leading zeroes. Examples:Attention reader!… Read More
Given a string and an integer N, the task is to write a python program to print the last N characters of the string.  Example: Attention… Read More
Given two lists, the task is to write a Python program to extract all the strings which are possible substring to any of strings in… Read More
We are given a list of n numbers and a number x, the task is to write a python program to find out all possible… Read More
Given a list containing lists, the task is to write a Python Program to convert it to a list containing sets. Examples: Attention geek! Strengthen your… Read More