Skip to content

Instantly share code, notes, and snippets.

x = int
y = int
math = input("What do you want to do with the calculator: ")
if math.lower() == "add":
num1 = input("Please enter the first number: ")
num2 = input("Please enter the second number: ")
print(int(num1) + int(num2))
if math.lower() == "sub":