The Wayback Machine - https://web.archive.org/web/20210417173601/https://www.geeksforgeeks.org/category/python-programs/
Skip to content

Category Archives: Python Programs

Given Tuples list and search list consisting of tuples to search, our task is to write a Python Program to extract indices of matching tuples.… Read More
Given the dictionary list, our task is to write a Python Program to extract the mean of all keys.  Input : test_list = [{‘gfg’ :… Read More
Given a List, our task is to write a Python program to reverse a range in the list. Example: Input : test_list = [6, 3,… Read More
Given a dictionary with a values list, our task is to extract the sum of values, found using mappings. Input : test_dict = {4 :… Read More
Given a String, our task is to write a Python program to extract the start and end index of all the elements of words of… Read More
Given the dictionary list, our task is to create a new dictionary list that contains all the keys, if not, then assign None to the… Read More
Given a dictionary with values as tuples, the task is to write a python program to find the key of maximum value tuples.  Examples: Input… Read More
Given a list, the task is to write a python program that can split it into all possible tuple pairs combinations.  Input : test_list =… Read More
Given a tuple list with string and its magnitude, the task is to write a python program to join all the strings with maximum magnitudes.… Read More
Given a Matrix, the task is to write a python program to extract rows with has no repeated data types. Examples: Input : test_list =… Read More
In this article, we are going to discuss how to print current hour, minute, second, and microsecond using Python. In order to print hour, minute… Read More
Given a string S, the task is to print permutations of all words in a sentence. Examples: Input: S = “sky is blue”Output:  sky is… Read More
Given a string S representing a sentence, the task is to reorder all the palindromic words present in the sentence in sorted order. Examples: Input:… Read More
Given a String with matrix representation, the task here is to write a python program that converts it to a matrix. Input : test_str =… Read More
Given two lists, the task is to write a python program that marks 1 for elements present in the other list else mark 0. Input… Read More