Are you ready to visit Oral Roberts University and see all that we have to offer? Attending Quest is the best way for you to experience what campus life is like, learn about scholarships, academics, and more!
Learn moredef calculator(): print("Welcome to the Simple Calculator") print("1. Addition") print("2. Subtraction") print("3. Multiplication") print("4. Division")
else: print("Invalid Input")
if choice == '1': print(num1, "+", num2, "=", add(num1, num2))
def add(x, y): return x + y
def divide(x, y): if y == 0: return "Error! Division by zero is not allowed." else: return x / y
elif choice == '2': print(num1, "-", num2, "=", subtract(num1, num2))
def multiply(x, y): return x * y
elif choice == '3': print(num1, "*", num2, "=", multiply(num1, num2))