Question: Multiple key-value pairs, each representing a person's name and age, are read from input and added to patients_info. Output each value in patients_info in sorted

Multiple key-value pairs, each representing a person's name and age, are read from input and added to patients_info. Output each value in patients_info in sorted order, with each value on a new line. patients_info = {} input_line = input() while input_line != 'stop': name, age = input_line.split() patients_info[name] = int(age) input_line = input() ''' Your code goes here

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!