Question: Rewrite the following program to use a function. Do NOT return a value from the function. Code to Rewrite using a Function: score = float(input(Enter

Rewrite the following program to use a function. Do NOT return a value from the function.

Code to Rewrite using a Function:

score = float(input("Enter a score: "))

if score >= 90: print("A") elif score >= 80: print("B") elif score >= 70: print("C") elif score >= 60: print("D") else: print ("E")

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!