Skip to content

Tag Archives: Python list-programs

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
Given a list of dictionaries, the task is to write a python program that extracts only those dictionaries that contain a specific given key value.… Read More
Given two lists that contain tuples as elements, the task is to write a Python program to accommodate tuple from the second list between consecutive… Read More
Given a Matrix, the task is to write a Python program to perform differences from the previous row on the basis of elements present. Input… Read More
Given a list, the task is to write a Python program to replace the grouping of the consecutive elements with a product of the frequency… Read More
Given a list, the task is to write a Python Program to subtract K from each digit, if the element gets below 0, retain 0.… Read More