Answers for "Complex calculator in python"

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

Python Answers by Framework

Browse Popular Code Answers by Language