Question: Two string and float pairs are read from input, each pair representing a patient's name and body temperature. Create a dictionary named patient_data containing the
Two string and float pairs are read from input, each pair representing a patient's name and body temperature. Create a dictionary named patient_data containing the following key-value pairs: Key patient1 with the value body_temperature1 Key patient2 with the value body_temperature2 patient1 = input() body_temperature1 = float(input()) patient2 = input() body_temperature2 = float(input()) ''' Your code goes here ''' print(f'{patient1}: {patient_data[patient1]}') print(f'{patient2}: {patient_data[patient2]}')
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
