## Program to calculate sum of first n natural numbers in Python

In this program we are not using the natural number addition formula n(n+1)/2, instead we are adding the natural numbers using while

## Python program to check whether a number is Prime or not

Prime numbers: A prime number is a natural number greater than 1 and having no positive divisor other than 1

## Python Program for factorial of a number

Factorial of a non-negative integer, is multiplication of all integers smaller than or equal to n. For example factorial of

## Python program to display natural numbers from 1 to n

Python program to display natural numbers from 1 to n In this tutorial, we will discuss the Python program to display

## String Functions in Python 3

A string is a sequence of characters enclosed in quotation marks. In this page, you will find all the methods

## Insertion Sort in Python

The Insertion sort is a straightforward and more efficient algorithm than the previous bubble sort algorithm. The insertion sort algorithm

## Python Program for Bubble Sort

What is Bubble Sort? Bubble Sort is the simplest sorting algorithm that works by repeatedly swapping the adjacent elements if

## Python | Linear search on list or tuples

What is a Linear Search? Linear search is a method of finding elements within a list. It is also called