Better Calculator
Lesson 18Author : GOUP
Last Updated : September, 2020
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")