# 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…

### 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…

### 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…

### 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…

### 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…

### 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…

### 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…

### 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…