Question: Complete the Python function called 'grade2point(grade)' that accepts'a', 'A', 'b', 'B', 'c', 'C', 'd', 'D', 'e', or 'E'as its only parameter. The function shouldreturn a
- Complete the Python function called 'grade2point(grade)' that accepts'a', 'A', 'b', 'B', 'c', 'C', 'd', 'D', 'e', or 'E'as its only parameter. The function shouldreturn a integer valuebased on the following conversion chart:
- a or A -> 4
- b or B -> 3
- c or C -> 2
- d or D -> 1
- e or E -> 0
- Any other -> None
- Pleaseuse the following templatefor your python script and complete the code for the grade2point() function andname the script as mt_q4.py.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
