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

  1. 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:
  2. a or A -> 4
  3. b or B -> 3
  4. c or C -> 2
  5. d or D -> 1
  6. e or E -> 0
  7. Any other -> None
  8. 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!