Python program to print first n prime numbers

python program to Print First N Prime Numbers

In this tutorial, we are going to learn a python program to print all the prime numbers that are smaller than or equal to the number given as an input by the user. Problem Statement For any number that is input by the user, we have to print all the prime numbers. For example: What … Read more

Find the Average of numbers in Python

python program to Find The Average Of Numbers

In this tutorial, we are going to learn writing python program to find the average of numbers given as input from the user. In Python, there are several ways to compute the average, depending on the source and structure of the input data. Each method has its benefits and is suitable for different scenarios. Here, … Read more

Linked list Deletion in Python: At beginning, End, Given location

Linked list Deletion in Python: At beginning, End, Given location

In this tutorial, we are going to learn the python program to create a singly linked list and delete a node at the beginning, at the end, and at the given location of the singly linked list. Problem Statement Our program will delete an element at the beginning, at the end, and at the given … Read more

Python program to insert a node in linked list

python program to Insert A Node In Linked List

In this tutorial, we are going to learn the python program to create a singly linked list and add a node at the beginning, at the end, and at the given location of the singly linked list. Problem Statement Our program will add an element at the beginning, at the end, and at the given … Read more

Singly linked list: Create and Traverse Python Program

To create and traverse singly Linked List

  In this tutorial, we are going to learn the python program to create a singly linked list and traverse its elements. Problem Statement Our program will take the elements of the linked list from the user as the input and then print the elements of the linked list. For example What is a Linked List? … Read more

Python Program To Calculate The Factorial

Factorial Program in Python

Description                    In this tutorial, we are going to learn a python program to find the factorial of the number given as input from the user. Problem Statement                    For any numbers that are input by the user, we have to calculate the factorial of that numbers. For example What is Factorial of a number? … Read more

C program to perform right rotation in array by 2 positions

C Program To Perform Right Rotation In Array By Two Positions

Performing right rotation in array means, our last element will become first element and shift each array elements towards right by one. Here we are going to perform right rotation by 2 times means we will shift each array element toward right two times. Our problem statement Suppose we have an array that has elements a={1,2,3,4,5}. … Read more