# Category: Python

### Program for Counting Sort using Python

0 Introduction The task is to sort the given array element using Counting sort. Counting sort is based on key between specific range. Program def sort(arr): […]

### Program for Comb Sort using Python

0 Introduction Comb Sort is the variation of Bubble Sort algorithm. In Bubble sort, the element is compared to the adjacent elements, but in comb sort […]

### Program for Cocktail sort using Python

1 Introduction Cocktail sort is the extend version of bubble sort algorithm. The elements are bubbled from both the side alternatively. Program def sort(array, length):     […]

### Program for Bogo Sort using Python

1 Introduction Bogo sort is based on generate and test paradigm and is also known as Permutation sort, shotgun sort or monkey sort. Our task is […]

### Program to count uppercase, lowercase, special character and numeric value in the given string using Python

2 Introduction The task is to find the occurrence of uppercase, lowercase, numeric value and special characters in the given input using regression. Program import re […]

### Program to check whether the string contains the defined character using Python

1 Introduction In this article our task is to search whether the given input string contains specific characters. Program import re def verify(ip_str, re_exp):     if […]

### Program to find number of times each day occurs in a year using Python

6 Introduction The task is to find the occurrence of days Monday, Tuesday, Wednesday, Thursday, Friday, Saturday and Sunday in a given year. Program import datetime […]

### Program to find difference between current and given time using Python

4 Introduction Our task is to calculate the difference between current time given in h1:m1 and given time given in h2:m2 where, h1, h2 and m1,m2 […]

### Program to get current time using Python

6 Introduction Python provides so many options to get the current time. Here, we will look through the various options provided. Program Approach 1: Using pytz […]

### Program to find current Date and Time using Python

8 Introduction The task is to find the current local date and time. Program Approach 1: Using now() Program 1: import datetime current_time = datetime.datetime.now() print(“The […]

Translate »