Skip to content

Tag Archives: Python list-programs

Given a list of objects, the task is to write a Python program to get the object with the max attribute value in a list… Read More
Given two lists, the task is to write a Python program to remove all the common elements of two lists.  Examples: Input : list1 =… Read More
Given a list, the task is to write a Python Program to get the indices of all occurrences of an element in a list. Method… Read More
Given a list, the task is to write a Python Program to find the Index containing String. Example: Input: [‘sravan’, 98, ‘harsha’, ‘jyothika’, ‘deepika’, 78,… Read More
In this article, we will discuss how to convert a list of dictionaries to a dictionary of lists. Method 1: Using for loop By iterating… Read More
Given a byte string. The task is to write a Python program to convert this byte of string to a list of integers.  Method 1:… Read More
Given two matrices, the task is to write a Python program to add elements to each row from initial matrix. Input : test_list1 = [[4,… Read More
Given a Matrix, the task is to write a Python program that can sort its rows or columns on a measure of the number of… Read More
Given a Matrix and a range of indices, the task is to write a python program that can sort a matrix on the basis of… Read More
Given a list and a Matrix, the task is to write a Python program that can find the difference of the sum of list elements… Read More
Given a List of strings, the task is to write a Python program to sort list by the number present in the Strings. If no… Read More
Given a list of strings, the task is to write a Python program to get a percentage share of each word in the strings list.… Read More
Given a list, the task is to write a python program that can construct n*m matrix. Input : test_list = [6, 3, 7, 2, 6,… Read More
Given a Matrix, the task is to write python program to reverse every Kth row. Where, K is some span value. Input : test_list =… Read More
Given a string list, the task is to write a Python program to extract Strings that form the longest increasing alphabetic order at Kth index.… Read More

Start Your Coding Journey Now!