Python Program for checking Perfect Number or Not

In this tutorial, we will discuss a python program for checking Perfect Number or Not. Before going to the program first, let us understand what is a Perfect Number. Perfect Number: A perfect number is...

Python Program for checking if a Number is Prime or not

In this tutorial, we will discuss python program for checking if a number is Prime or not. Before going to the program first, let us understand what is a Prime Number. Prime Number A prime...

Python program for Binary Search

Before going to the program first let us understand what is a Binary Search? Binary Search:           Binary search is a searching technique used to quickly search the element from the...

Python Program for Linear Search

Before going to the program first let us understand what is a Linear Search? Linear search:           Linear search is the simplest search algorithm. It is also called a sequential search. Linear...

Python Program for Selection Sort

Before going to the program first let us understand what is Selection Sort? Selection Sort:           A Selection Sort is a Sorting algorithm that finds the smallest element in the array and swaps...

Python Program to Find First N Prime Numbers

To write a program to find first N Prime Numbers in Python we should know how to find whether a Number is Prime Number or Not? To find whether a Number is Prime Number or...

Python Program to Find Factorial of a Number Using While Loop

Before going to the program first let us understand what is a Factorial of a Number? Factorial of a Number:                   The factorial of a Number n, denoted by...

Python Program to Find Factorial of a Number Using For Loop

Before going to the program first let us understand what is a Factorial of a Number? Factorial of a Number:                   The factorial of a Number n, denoted by...

Python Program to find Prime Number or Not using For Loop

Before going to the program for Prime Number or Not first let us understand what is a Prime Number? Prime Number:                  A Prime Number is a number greater...

C Program to Check Leap Year or Not

Before going to the program first let us understand what is a Leap Year? Leap Year:           A Leap Year is a year that is exactly divisible by four, except for years that are exactly...