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
Get step-by-step solutions from verified subject matter experts
