Skip to content

Category Archives: Python Programs

Given a String, the task is to write a Python program to remove the nth index character from a non-empty string Examples: Input: str =… Read More
Given Strings Matrix, the task is to write a Python program to count strings which can be made from letters from given list. Examples: Input… Read More
Given Strings List, the task is to write a Python program to perform sort on basis of difference of cases i.e count of lower case… Read More
Given a list, the task is to write a Python program to compute how deviated are each of them from its list mean.  Examples: Input… Read More
Given two lists, the task is to write a Python Program to return true if all elements from second list are in range of min… Read More
Given the String list, write a Python program to compute sum of lengths of custom indices of list. Examples: Input : test_list = [“gfg”, “is”,… Read More
Given Matrix, write a Python program to extract rows which only contains alphabets in its strings. Examples: Input : test_list = [[“gfg”, “is”, “best”], [“Geeks4Geeks”,… Read More
Given a List, write a Python program to find the span of even elements in list, i.e distance between first and last occurrence of even… Read More
Given a Dictionaries list, write a Python program to assign limits to each key in dictionary list.( each having all keys ). Examples: Input :… Read More
Given teo elements, write a Python program to check that they don’t occur as their neighbours in list Examples: Input : test_list = [3, 7,… Read More
Given two Matrixes, the task is to write a Python program to perform element-wise difference. Examples: Input : test_list1 = [[2, 4, 5], [5, 4,… Read More
Given a Matrix, write a Python program to remove whole column if duplicate occurs in any row. Examples: Input : test_list = [[4, 3, 5,… Read More
Given Matrix, write a Python program to sort rows by maximum of K sized subarray sum. Examples: Input : test_list = [[4, 3, 5, 2,… Read More
Given a List of elements, write a Python program to perform the product of index and value and compute the summation. Examples: Input : test_list… Read More
Given two List of dictionaries with possible duplicate keys, write a Python program to perform merge. Examples: Input : test_list1 = [{“gfg” : 1, “best”… Read More