#!/usr/bin/pythonimportsysimportmathvals=[]sum=0cnt=0forlineinsys.stdin:num=float(line)vals.append(num)sum=sum+numcnt=cnt+1avg=sum/cntstddev=0forvalinvals:stddev=stddev+(val-avg)**2stddev=stddev/cntstddev=math.sqrt(stddev)print"avg is ",avgprint"stddev is ",stddev