Question: Multiple key-value pairs, each representing a person's name and email address, are read from input and added to contact_dict. Assign sorted_items with a sorted list

Multiple key-value pairs, each representing a person's name and email address, are read from input and added to contact_dict. Assign sorted_items with a sorted list of the items in contact_dict. contact_dict = {} input_line = input() while input_line != 'quit': name, email = input_line.split() contact_dict[name] = email input_line = input() ''' Your code goes here ''' print(sorted_items)

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!