Skip to content

Category Archives: Python Programs

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
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 Strings with words, the task is to write a Python program to split each word into two halves on the basis of assigned percentages… Read More
Given a string, the task is to write a Python program to extract overlapping consecutive string slices from the original string according to size K. … Read More
Given a substring K, the task is to write a Python Program to find the repetition of K string in each consecutive occurrence of K.… 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
Given a date list and date range, the task is to write a Python program to check whether any date exists in the list in… Read More
Given a list, the task is to write a Python program to group each increasing and decreasing run.  This is known as a monotonous grouping.… Read More
Given a string of words. The task is to write a Python program to replace the given word irrespective of the case with the given… Read More
Given a date, our task is to get the weekday index and year range, compute the total occurrence of the date on a particular weekday… Read More
Given a list, the task is to write a Python Program to count a maximum number of times K occurs consecutively in each batch of… Read More
This article focuses on discussing how to draw a heart with a beautiful message to your loved ones to express what you feel about them.… Read More
Python Programming language makes everything easier and straightforward. Effective use of its built-in libraries can save a lot of time and help with faster submissions… Read More
In this article, we will know How to Convert PIL Image into pygame surface image.  Pygame Surface Image: A surface that not only has fixed… Read More
Given two lists of different lengths, the task is to write a Python program to get their elements alternatively and repeat the list elements of… Read More