Question: Four string and float pairs are read from input, each pair representing a patient's name and body temperature. Create a dictionary named patient _ data

Four 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
Key patient3 with the value body_temperature3
Key patient4 with the value body_temperature4
Click here for example
Ex: If the input is:
Kai
98.9
Zoe
98.4
Dax
100.5
Jen
95.0
then the output is:
Kai: 98.9
Zoe: 98.4
Dax: 100.5
Jen: 95.0

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