#---------------------------------------------------------------------- # (C) Monday, January 29, 2018 -- Dr. William T. Verts # # This first version is a simple program to input two numbers and # print out their average. However, there is no checking on the values # of the numbers that are input - for example, if we want to restrict # the numbers to be only 0 or positive, there isn't any code to enforce # the restrictions. #---------------------------------------------------------------------- N1 = input("Enter Number #1 --- ") N2 = input("Enter Number #2 --- ") A = (N1 + N2) / 2.0 print "The average is: ", A