Program to create a four function calculator

 num1 = float(input("Enter first number:"))

num2 = float(input("Enter second number:"))


a = num1 + num2

p = num1 * num2

s = num1 - num2

d = num1 / num2

print("sum of num1 and num2 is", a)

print("product of num1 and num2 is", p)

print("subtraction of num1 and num2 is" , s)

print("division of num1 and num2 is" , d)

☝☺

Comments

Popular posts from this blog

How to create a set in python

How to add comments in python ?