Answers for "code for building calculator in python using dictionary"

1

how to make a complex calculator in python

Just Ctrl-C and Ctrl-V

num1 = float(input("Enter first number... "))
op = input("Enter an Operation... ")
num2 = float(input("Enter second number... "))
if op == ("+"):
    print(num1+num2)
elif op == ("-"):
    print(num1-num2)
elif op == ("*"):
    print(num1 * num2)
elif op == ("/"):
    print(num1/num2)
Posted by: Guest on May-27-2020

Code answers related to "code for building calculator in python using dictionary"

Python Answers by Framework

Browse Popular Code Answers by Language