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 23:30
Which text format is this, "the text is transcribed exactly as it sounds and includes all the utterances of the speakers. "?
Answers: 2
question
Computers and Technology, 23.06.2019 15:00
1. which of the following statements are true about routers and routing on the internet. choose two answers. a. protocols ensure that a single path between two computers is established before sending packets over it. b. routers are hierarchical and the "root" router is responsible for communicating to sub-routers the best paths for them to route internet traffic. c. a packet traveling between two computers on the internet may be rerouted many times along the way or even lost or "dropped". d. routers act independently and route packets as they see fit.
Answers: 2
question
Computers and Technology, 23.06.2019 18:00
Which finger presses the h key on the keyboard? index finger on the left hand pinky finger on the right hand index finger on the right hand thumb on the left hand
Answers: 1
question
Computers and Technology, 24.06.2019 08:50
Write a program that will compute the volume of ice cream served in a cone. as you can see in the diagram below, the ice cream is served as a hemisphere of frozen deliciousness on top of a cone, which is also packed with frozen deliciousness. thus, the total volume of ice cream sold is the volume of the hemisphere plus the volume of the cone. the example shows an ice cream cone in which the hemisphere and cone have a radius of 10 inches and the cone has a height of 15 inches. your program must instead prompt for these two values, which are taken from the keyboard as integers: • the hemisphere/cone radius in inches, and
Answers: 3
You know the right answer?
Address the fixme comments. move the respective code from the while-loop to the created function. th...
Questions
question
Chemistry, 27.05.2020 07:58
question
Mathematics, 27.05.2020 07:58
question
Mathematics, 27.05.2020 07:58
question
Health, 27.05.2020 07:58
question
Biology, 27.05.2020 07:58
question
Mathematics, 27.05.2020 07:59
question
Mathematics, 27.05.2020 07:59
question
History, 27.05.2020 07:59
Questions on the website: 13722360