Question: def add _ grade ( student _ grades ) : print ( ' Entering grade. ' ) name, grade = input ( grade _ prompt
def addgradestudentgrades:
printEntering grade.
name, grade inputgradepromptsplit
studentgradesname grade
# FIXME: Create deletename function
# FIXME: Create printgrades function
studentgrades # Create an empty dict
gradeprompt "Enter name and grade Ex 'Bob A:
deleteprompt "Enter name to delete:
menuprompt Addmodify student grade
Delete student grade
Print student grades
Quit
command inputmenupromptlowerstrip
while command : # Exit when user enters
if command :
addgradestudentgrades
elif command :
# FIXME: Only call deletename here
printDeleting grade.
name inputdeleteprompt
del studentgradesname
elif command :
# FIXME: Only call printgrades here
printPrinting grades.
for name, grade in studentgrades.items:
printfname has a grade
else:
printUnrecognized command.
command inputlowerstrip
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
