""" average3.py class exercise Sep 11 2012 """ from math import sqrt numbers = input("What are the numbers? ") # print "You said ", numbers total = 0.0 for x in numbers: total = total + x # print " this number is ", x # print " total is now", total n = len(numbers) average = total/n print "The average is ", average total = 0.0 for x in numbers: total = total + (x - average)**2 s = sqrt(total/n) print "The standard deviation is ", s