subject

Address the fixme comments. move the respective code from the while-loop to the created function. the add_grade function has already been created.# fixme: create add_grade functiondef add_grade(student_grades): print('entering grade. \n')name, grade = input(grade_prompt).split()student_ grades[name] = grade# fixme: create delete_name function# fixme: create print_grades functionstudent_grades = {} # create an empty dictgrade_prompt = "enter name and grade (ex. 'bob a+'): \n"delete_prompt = "enter name to delete: \n"menu_prompt = ("1. add/modify student grade\n""2. delete student grade\n""3. print student grades\n""4. quit\n\n")command = input(menu_prompt).()while command ! = '4': # exit when user enters '4'if command == '1': add_grade(student_grades)elif command == '2': # fixme: only call delete_name() hereprint('deleting grade.\n')name = input(delete_prompt)del student_grades[name]elif command == '3': # fixme: only call print_grades() hereprint('printing grades.\n') for name, grade in student_grades. items(): print(name, 'has a', grade) else: print('unrecognized command.\n') command = ()

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 17:40
Gabe wants to move text from one document to another document. he should copy the text, paste the text, and open the new document highlight the text, select the cut command, move to the new document, make sure the cursor is in the correct location, and select the paste command select the save as command, navigate to the new document, and click save highlight the text, open the new document, and press ctrl and v
Answers: 1
question
Computers and Technology, 23.06.2019 04:20
Which network media uses different regions of the electromagnetic spectrum to transmit signals through air? uses different regions of the electromagnetic spectrum to transmit signals through air.
Answers: 2
question
Computers and Technology, 24.06.2019 19:00
In python a floating-point number must be written using scientific notation?
Answers: 1
question
Computers and Technology, 25.06.2019 03:30
Kou converged his word document to a powerpoint document. when he received the powerpoint, he was missing material. which most likely explains why the material was missing? a it did not have a proper heading b he incorrectly copied and pasted it c he did not save his document properly d there was not enough space in powerpoint
Answers: 1
You know the right answer?
Address the fixme comments. move the respective code from the while-loop to the created function. th...
Questions
question
Mathematics, 17.04.2020 00:33
question
Mathematics, 17.04.2020 00:33
question
Mathematics, 17.04.2020 00:33
Questions on the website: 13722363