Question: s Jump to level 1 Multiple key-value pairs, each representing a room number and name, are read from input and added to hotel_guesis1. First, i

s

Jump to level 1 Multiple key-value pairs, each representing a room number and name, are read from input and added to hotel_guesis1. First, i merge hotel_guests2 with hotel_guests1. Then, clear hotel_guests1. Click here for example 1 hotel_guests1 = {} 2 hotel_guests2 = {'731': 'Cam' } 3 ref_recordi = hotel_guests1 # For testing purposes, ref_recordl references hotel_guests1 4 ref_record2 = hotel_guests2 # For testing purposes, ref_record2 references hetel_guests2 5 6 input_line = input() 7 while input_line != 'end': 8 room, name = input_line.split() 9 hotel_guestsi[room] = name 16 input_line = input() 11 12 |''" Your code goes here '"' 13 14 print('Hotel guests 1:') 15 print(hotel_guests1) 16 print('Hotel guests 2:') 17 print(hotel_guests2)

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 Mathematics Questions!