code for building calculator in python using dictionary code example
Example: 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)