Answers for "how to build a better calculator in python"

0

how to build a better calculator in python

Copynum1 = 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")
Posted by: Guest on November-22-2020

Code answers related to "how to build a better calculator in python"

Python Answers by Framework

Browse Popular Code Answers by Language