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
Get step-by-step solutions from verified subject matter experts
