Category Archives: 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 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 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 »