# adder.py # a complete program that inputs, calculates, outputs # Can run and input any/every pairs of numbers and add them. # get input num1 = eval(input("Enter first number: ")) num2 = eval(input("Enter second number: ")) #compute result and display it result = num1 + num2 print("Sum is:", result) #compute the arithmetic mean of the two numbers, i.e. their average, midpoint average = result / 2 # avoid re-calculating by using the variable already calculated print("Average =", average)