Better Calculator
Lesson 18Author : 🦒
Last Updated : October, 2017
Code
num1 = int(input("num1: "))
op = input("Operator: ")
num1 = int(input("num1: "))
if op == "+":
print(num1 + num2)
elif op == "-":
print(num1 - num2)
elif op == "/":
print(num1 / num2)
elif op == "*":
print(num1 * num2)
else:
print("Invalid Operator")