Question: Python: Rewrite the Question 3 as a function that is called computeGrade that takes a score as its parameter and returns a grade as a

 Python: Rewrite the Question 3 as a function that is called

Python:

Rewrite the Question 3 as a function that is called computeGrade that takes a score as its parameter and returns a grade as a string. Function prototype: computeGrade(score) You need to create this function and call this function. When you call the function, try to make your code to be interactive. Example input and output:

Enter score: 0.95 A

Enter score: perfect Invalid input

Enter score: 10.0 Invalid input

Enter score: 0.75 C

Enter score: 0.5 F

#question3 score-input ("Enter score: ") try score-float (score) if(score-0.0 and score-0.9): print("A") elif(score>-0.8): print("B") elif(score>-0.7) print("C") elif(score-0.6): print("D") elif(score

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!