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

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

Python program to Identify Even and Odd Elements in List

first we understand what is even and odd : Even : Even  number means those numbers which are  divided by 2 (two) Odd : Odd number means those numbers which are not divided by 2 (two) Now we understand what is list : List : List is a group of elements It can be store … 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: