discussion given the initial statements import string [ , , , [' ',' ',' 'show the result of evaluating each of the following sequence expressions(as ( (cs [ (ds [ : (es [- given the same initial statements as in the previous problemshow the values of and after executing each of the following statements treat each part independently ( assume that and start with their original values each time(as remove( (bs sort((cs append([ index(' ')](ds pop( pop( )(es insert( [ ]' 'programming exercises modify the statistics package from the so that client programs have more flexibility in computing the mean and/or standard deviation specificallyredesign the library to have the following functionsmean(numsreturns the mean of numbers in nums stddev(numsreturns the standard deviation of nums meanstddev(numsreturns both the mean and standard deviation of nums extend the gpasort program so that it allows the user to sort file of students based on gpanameor credits your program should prompt for the input filethe field to sort onand the output file extend your solution to the previous problem by adding an option to sort the list in either ascending or descending order