# Tag Archives: Python Program

## Python Program to Make a Simple Calculator

Here in this article, we have provided a python source code for a simple calculator that can perform basic arithmetic operations such as Addition, Multiplication, Division, subtraction, and modules. Prerequisite topics to create this program. Python Input, Output Python Data types Python User-defined Functions Python Arithmetic Operators Python If…..elif statements. Steps Create 4 different functions add(), sub(), mul(),… Read More »

## Python Program to Find the Factors of Number

Python Program to Find the Factors of a Number: Here in this article, we have written a python code that asks the user to enter a number and print all the factors of that number as an output. Prerequisite topics to create this program. Python Input, Output Python Data types Python User-defined Functions Python Loop Steps Create a… Read More »

## Python Program to Find LCM

Here we have provided a python source code that asks the user to enter 2 numbers and in Output, it prints the LCM. Prerequisite topics to create this Program Python Input, Output Python Data types Python User-defined Functions Python Loop LCM: LCM stands for Least Common Multiple, and the LCM of two numbers represents the least positive number… Read More »

## Python Program to Find ASCII Value of Character

Here we have provided a python source code that can find the ASCII value of the user entered character. ASCII Code or value: ASCII stands for  American Standard Code or Information Interchange, and it is used to represent 128 characters as numbers, which include special symbols too. Prerequisite topics to create this program Python Input, Output python ord() Steps Ask the… Read More »

## Python Program to Convert Decimal to Binary, Octal and Hexadecimal

Here we have provided a python source code that asks the user to enter a decimal number and in output show its Binary, Octal and Hexadecimal values. Prerequisite topics to create this program. Python Input, Output Python Operators Python int() In python, we already have inbuilt functions which can be used to change the base of value, and… Read More »

## Python Program to Find Numbers Divisible by Another Number

In this article, we will provide Python source code that can find the numbers divisible by another number, specifically, from a list of numbers. Prerequisite Topics to Create the Program Python Input/Output. Python Lambda functions. Filter function in Python. Python operators. Python split operator. Steps to Create the Program First, we ask the user to enter the values… Read More »

## Python Program To Display Powers of 2 Using Anonymous Function (lambda Function)

Here in this article, we have provided a python program that can print the powers of 2 using the python lambda or Anonymous function. Prerequisite topics to create this Program Python Input, Output Python Lambda function. Python map function Python Operators Python Loop Steps First, we ask the user to enter a number n, which represents up to… Read More »

## Python Program to Find the Sum of Natural Numbers

Here in this article, we have provided a python program that can find the sum of n natural numbers using Python loop. Prerequisite topics to create this Program Python Input, Output Python if…else statement Python Data types Python Operators Python Loop Steps First, we ask the user to enter a number n. Using the int() function we will… Read More »

## Python Program to Find Armstrong Number in an Interval

Here in this article, we have provided a python program, which asks the user to enter the lower and the upper limit numbers and the program compute all the Armstrong numbers present in between those two numbers. Armstrong Number A number is said to be Armstrong’s number if the sum of that number each digit which is raised… Read More »

## Python Program to Check Armstrong Number

In this python program, we will ask the user to enter a number and as an output, the program will tell if the entered number is an Armstrong number or not. Armstrong Number: A number is said to be Armstrong’s number if the sum of that number each digit which is raised to the power of total digits… Read More »