how to make a complex calculator in python

Solutions on MaxInterview for how to make a complex calculator in python by the best coders in the world

showing results for - "how to make a complex calculator in python"
Daniele
08 Jan 2020
1Just Ctrl-C and Ctrl-V
2
3num1 = float(input("Enter first number... "))
4op = input("Enter an Operation... ")
5num2 = float(input("Enter second number... "))
6if op == ("+"):
7    print(num1+num2)
8elif op == ("-"):
9    print(num1-num2)
10elif op == ("*"):
11    print(num1 * num2)
12elif op == ("/"):
13    print(num1/num2)