Question: Question: In Python, receive full names and grades. Find and return the highest score, lowest score, median score, and average score. Finally, rank and print
Question: In Python, receive full names and grades. Find and return the highest score, lowest score, median score, and average score. Finally, rank and print all the scores aside from the last name of their owners.
What I want you to do: First fix the error within the python program, then write comment and doctest. Thank you.
Requirement:

"Design Your Own Homework" For this homework, you will use the Python skills you've acquired so far to create a program that solves any problem within reason. You are free to be as creative as you like in choosing a problem and devising a program to solve it. You are also strongly encouraged (but not required) to work with a partner. Programming collaboratively is an important skill and one that is worth practicing. There are only a few requirements: 0) Your choice of program should be of roughly similar difficulty to the most recent homework assign- ments (i.e., doable within 1 week and enough to do for 1 week). 1) Your program must be divided up into functions, and at least two of those functions must have doctests with 3 or more examples. There are examples below of how to use doctest; you can also refer to your class notes. 2) Your group must complete and submit your code by Thursday, March 11 at 5pm. Along with your code, you must also submit a description of the code to explain (a) what the program is, (b) why you chose to do what you did, and (c) a (very) brief description of how to run the program. The writeup does not need to be long (please keep it relatively short!) If your group is having a hard time coming up with a program to write, please let your instructor know, they can suggest a few ideas if you are really stuck on what to do. Because of the nature of this assignment there is no challenge problem for this week. Using the doctest module The doctest module allows you to write tests for individual functions within the docstring of a function. At least two of the functions in your program must have at least three doctest examples in them. Here's an example of a function isprime that has three doctest examples: import doctest def isprime (n) : check if n is prime; return True if so, False otherwise. 3> isprime (2) True > isprime (7) True as isprime (10) False ifn * 2: return False for i in range (2, n) : if n $ i - 0: return False return True if name_ '_ main_' : import doctest doctest . testmod (verbose-True) When you run this program, the output shows that the doctest module finds each of the three test case examples, runs them, and checks that the return value is as expected: Trying : isprime (2) Expecting : True OK Trying : isprime (7) Expecting : True ok Trying : isprime (10) Expecting: False ok 1 items had no tests: main 1 items passed all tests: 3 tests in main . isprime 3 tests in 2 items. 3 passed and 0 failed. Test passed. You can find more information in the Python documentation on doctest: https:/ /docs.python.org/3/liber ary / doctest.html
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
