def add(F, S):
return F + S
def subtract(F, S):
return F - S
def multiplication(F, S):
return F * S
def division(F, S):
return F / S
print ("Please select the action.")
print ("a. Addition")
print ("b. Subtraction")
print ("c. Multiplication")
print ("d. Division")
choice = input("What action:")
number1= int (input (" What is the First number?: "))
number2= int (input ("What is the Second number?: "))
if choice == 'a':
print (number1, " + ", number2, " = ", add(number1, number2))
elif choice == 'b':
print (number1, " - ", number2, " = ", subtract(number1, number2))
if choice == 'c':
print (number1, " * ", number2, " = ", multiplication(number1, number2))
elif choice == 'd':
print (number1, "/ ", number2, " = ", division(number1, number2))
else:
print("Action Finished")