## 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

## 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

## Find the Duplicate Elements in the List – Python List Program

In this post we will learn about basic list program to print the elements which are duplicate . Problem Here is example of the problem  – Input: [ 1,2,3,3,2,2,4,] Output:  [ 2,3 ] In this example we need to find the duplicate elements, here 2 and 3 are the duplicate elements. Solutions Basic approach to … Read more