Python program to check given number is even or odd

Check Given Number Is Even Or Odd in python

In this tutorial, we are going to learn a python program to find a number given as input from the user is even or odd. Problem Statement For any number that is input by the user, we have to check if it is even or odd. For example: How to check if a number is … Read more

Python Program to Search an element in Singly linked list

python program to Search An Element In Singly Linked List

In this tutorial, we will learn writing python program to perform search operation to find an element in the singly linked list. Problem Statement Our program takes the element of the linked list from the user as the input. And then, it takes another input from the user to search the element in the linked … Read more

Python program to reverse the singly linked list

python program to Reverse The Singly Linked List

In this tutorial, we are going to learn the python program to reverse the singly linked list. Problem Statement Our program will take the linked list elements from the user as the input and return the reversed linked list. For example: What is a single linked list? A linked list is the collection of elements … Read more

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

Factorial Program in python using recursion with explanation

Calculate The Factorial Using Recursion in python

In this tutorial, we are going to learn writing python program to find the factorial of the number using recursion method. We will take a number from the users as and input and our program will print the factorial as an output. Problem Statement For any numbers that are input by the user, we have … 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

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