Python Program : Selection Sort in Python

In this post we understand about selection sort  with a example of python program First we understand about sorting Ordering data in an increasing or decreasing manner is called sorting Selection Sort It means that it check first element with second element if second element is greater than it swap  . Input : x= [10,20,90,100,80,50,30,40 … Read more

Table of Multiplication for Two

In this program how to print Table of Two and in different types of loops first we use for loop for printing the Table of Two : Input : Table of Two : 2 Output : 2 * 1 :  2 2 * 2 :  4 2 * 3 :  6 2 * 4 :  … Read more

Python Program: Find Prime Numbers in Python | Detailed Examples , Multiple Approaches

In this post we will go through the basic python program to find the prime numbers. We will also run the examples and corresponding output. Prime Numbers A number that can be divided by only itself and 1 is called Prime Numbers . For example :  2,3,5,7,11 Algorithm to Find Prime numbers First we take … Read more

Bubble Sort in Python / Python Pragram

First we understand what is sorting  : Ordering data in an increasing or decreasing manner is called sorting Now we understand Bubble Sort : Bubble sort is a simple sorting algorithm that repeatedly steps through a list , compares  adjacent  elements and swaps them if they are in the wrong order The algorithm gets its … Read more

Find the number is Armstrong number or not // python program

First we understand what is Armstrong number : Armstrong number : >An Armstrong number of three digits is an integer such that the sum of the cubes of its digits is equal to the number itself. Input : >371 Output : > number is Armstrong Algorithm : first we take input from user then input … Read more

%d bloggers like this: