print("\nthe mean is"xbarprint("the standard deviation is"stdprint("the median is"medmany computational tasks from assigning grades to monitoring flight systems on the space shuttle require some sort of statistical analysis by using the if __name__ ='__main__techniquewe can make our code useful as stand-alone program and as general statistical library module here' the complete programstats py from math import sqrt def getnumbers()nums [start with an empty list sentinel loop to get numbers xstr input("enter number to quit>"while xstr !"" eval(xstrnums append(xadd this value to the list xstr input("enter number to quit>"return nums def mean(nums)sum for num in numssum sum num return sum len(numsdef stddev(numsxbar)sumdevsq for num in numsdev num xbar sumdevsq sumdevsq dev dev return sqrt(sumdevsq/(len(nums)- )def median(nums)nums sort(size len(numsmidpos size / if size = median (nums[midposnums[midpos- ]