Question: Write a function that returns a letter grade from a number using the following rules: The function should take a score and an optional value

 Write a function that returns a letter grade from a number

Write a function that returns a letter grade from a number using the following rules: The function should take a score and an optional value for the denominator. (The default value of the denominator should be 100.) Some example calls: In []: grade(95) Out []: A In []: grade (40.5, denom =50) Out []: B In []: grade('Janet') Out []: Please enter a numeric grade NOTE: This is basically the same code you wrote in the previous homework, but you now you to put it in a function and it should have a return statement

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 Databases Questions!