Question: Rewrite the following program, to use a function. Do not return a value from the function. Code to rewrite: score = float(input(Enter a score: ))
Rewrite the following program, to use a function. Do not return a value from the function.
Code to rewrite:
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
