# Category: Python Programs

python tutorials and learn python

### Python program to insert a new node at the beginning of the Circular Linked List

Python program to insert a new node at the beginning of the Circular Linked List In this program, we will create a circular linked list and insert every new node at the beginning of the list. If the list is empty, then head and tail will point to the newly added node. If the list…
Read more

### Python program to find the maximum and minimum value node from a circular linked list

Python program to find the maximum and minimum value node from a circular linked list In this program, we will create a circular linked list then, iterate through the list to find out the minimum and maximum node. 9->5->2->7->3 9->5->2->7->3<br /> We will maintain two variables min and max. Min will hold the minimum value…
Read more

### Python program to delete a node from the middle of the Circular Linked List

Python program to delete a node from the middle of the Circular Linked List In this program, we will create a circular linked list and delete a node from the middle of the list. If the list is empty, display the message “List is empty”. If the list is not empty, we will calculate the…
Read more

### Python program to delete a node from the end of the Circular Linked List

Python program to delete a node from the end of the Circular Linked List In this program, we will create a circular linked list and delete a node from the end of the list. If the list is empty, it will display the message “List is empty”. If the list is not empty, we will…
Read more

### Python program to delete a node from the beginning of the Circular Linked List

Python program to delete a node from the beginning of the Circular Linked List In this program, we will create a circular linked list and delete a node from the beginning of the list. If the list is empty, print the message “List is empty”. If the list is not empty, we will make the…
Read more

### Python program to create and display a Circular Linked List

Python program to create and display a Circular Linked List In this program, we will create a circular linked list and print all the nodes present in the list. Circular Linked List: The circular linked list is a kind of linked list. First thing first, the node is an element of the list, and it…
Read more

### Python program to create a Circular Linked List of n nodes and display it in reverse order

Python program to create a Circular Linked List of n nodes and display it in reverse order In this program, we create a circular linked list, then traverse the list in the reverse order and print the nodes. ALGORITHM: Define a Node class which represents a node in the list. It has two properties data…
Read more

### Python program to create a Circular Linked List of N nodes and count the number of nodes

Python program to create a Circular Linked List of N nodes and count the number of nodes In this program, we have to find out the number of nodes present in the circular linked list. We first create the circular linked list, then traverse through the list and increment variable ‘count’ by 1. ALGORITHM: Define…
Read more

### Python program to print all pronic numbers between 1 and 100

Python program to print all pronic numbers between 1 and 100 The pronic number is a product of two consecutive integers of the form: n(n+1). For example: 6 = 2(2+1)= n(n+1), 72 =8(8+1) = n(n+1) Some pronic numbers are: 0, 2, 6, 12, 20, 30, 42, 56 etc. In this program, we need to print…
Read more

### Python program to determine whether the given number is a Harshad Number.

Python program to determine whether the given number is a Harshad Number. If a number is divisible by the sum of its digits, then it will be known as a Harshad Number. For example: The number 156 is divisible by the sum (12) of its digits (1, 5, 6 ). Some Harshad numbers are 8,…
Read more