Skip to content

Category Archives: Python Programs

Given a mixed list, the task is to write a python program to group all the contiguous strings.  Input : test_list = [5, 6, 'g',… Read More
Given a base 4 number N, the task is to write a python program to print its binary equivalent. Conversion Table: Attention geek! Strengthen your foundations… Read More
Given a string list and list of numbers, the task is to write a Python program to generate all possible strings by repeating each character… Read More
Given a Matrix, the task is to write a Python program to get the count frequency of its rows lengths. Input : test_list = [[6,… Read More
Given a list, the task is to write a Python program to create a nested list where the values are the count of list items.… Read More
Given a list of tuples with each tuple wrapped around multiple lists, our task is to write a Python program to flatten the container to… Read More
Given a list of elements, the task is to write a Python program to get all ranges of K greater than N. Input : [2,… Read More
Given a list, our task is to write a Python program to remove all the non-increasing elements from the list. Input : test_list = [5,… Read More
Given a list of elements, our task is to get the index ranks of each element.   Attention geek! Strengthen your foundations with the Python Programming… Read More
Given a String, the task is to write a Python program to extract the mid occurrence of a character.  Input : test_str = “geeksforgeeks is… Read More
Given a String, our task is to write a Python program to split on the occurrence of a non-similar character.  Input : test_str = ‘ggggffggisssbbbeessssstt’ Attention… Read More
Given a string, the task is to write a Python program to extract till all characters from other strings are found. Input : test_str =… Read More
Given a dictionary with string values, the task is to write a python program to split values if the size of string exceeds K. Input… Read More
Given a list, our task is to write a Python program to extract all K length sublists with lead to given summation.  Input : test_list… Read More
Given two positive integers A and B, the task is to print the distinct digits in descending order, which are not common in the two… Read More

Start Your Coding Journey Now!