Skip to content

Category Archives: Python Programs

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 two dates, our task is to write a Python program to get total business days, i.e weekdays between the two dates. Example: Input :… Read More
Given a date, the task is to write a Python program to get the most recent previous business day from the given date. Example: Input… 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 dictionary with values as lists, the task is to write a Python program to get the key with the maximum element at the… 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 string, the task is to write a Python program to find all combinations of overlapping substrings of a string and store it in… Read More
Given a dictionary with values as delimiter separated values, the task is to write a python program to convert each string as different value in… 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 year and weekday, the task is to write a Python program to get a month and the week. Example: Input : test_year =… Read More