Skip to content

Category Archives: Python Programs

In this article, we are going to see the conversion of the Unix timestamp string to a readable date. This can be done with the… Read More
Given two binary numbers, and the task is to write a Python program to multiply both numbers. Example: firstnumber = 110 secondnumber = 10 Multiplication… Read More
Given an input string, our task is to write a Python program to sort the words present in the string in alphabetical order. Examples: Input… Read More
Given a positive integer N(at least contain two digits). The task is to write a Python program to add the first and last digit of… Read More
In this article, we will discuss how to convert a List of tuples to multiple lists. We can convert lit of tuples to multiple lists… 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 list of dates, group the dates in a successive day ranges from the initial date of the list. We will form a group… Read More
Given two dates, the task is to divide it into equal time duration and get the exact time of each division point. Input : test_date1… Read More
Given a year and weekday number, the task is to write a Python program to extract each date of the month corresponding to the weekday.… Read More
Given two dates, the task is to write a Python program to get K dates randomly. Input : test_date1, test_date2 = date(2015, 6, 3), date(2015,… Read More
In the telecommunication and computer domain, control characters are non-printable characters which are a part of the character set. These do not represent any written… Read More
Symmetric Differences among groups of sets are elements that belong to any one of the sets but are not present in any other set. Given… 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 dictionary with value as a list, the task is to write a Python program that can find the maximum of any one key… Read More