Simple Calculator Program in Python

Here we are going to implement simple calculator program in Python. We are going to implement Addition, Substraction, Multiplication and Division.

Simple Calculator Program in Python

# Simple Calculator for Add, Sub, Mul and Div

def Addition (num1,num2):
return num1+num2

def Substraction (num1,num2):
return num1-num2

def Multiplication (num1,num2):
return num1*num2

def Division (num1,num2):
return num1/num2

print("Enter two number for calculation")

num1 = int(input("Enter a number1: "))
num2 = int(input("Enter a number2: "))

print("Enter your choice \n 1. Addition \n2. Substraction \n3. Multiplication \n4.Division")
choice = int(input())

if choice == 1:
elif choice ==2:
elif choice ==3:
elif choice == 4:
Filed under: Python

No comment yet, add your voice below!

Leave a Reply