Important Slides:
Follow this walkthrough on finding the length, values, adding, and deleting from a dictionary!
Desired Output:
Number of items in the dictionary: 2
Pump A: {'type': 'Centrifugal', 'flow_rate_m3_hr': 500, 'head_m': 30, 'power_kw': 55}
Pump A Flow Rate: 500
Valve B: {'type': 'Gate', 'size_mm': 100, 'pressure_rating_bar': 10, 'material': 'Stainless Steel'}
Valve B Size: 100
Pump A Power: 75
{'type': 'Reciprocating', 'capacity_m3_min': 20, 'pressure_bar': 8, 'power_kw': 30}
3
2
Coding Assistance: This section corresponds to your HW Problem "Practice problem Using a Dictionary," if you need help, click this link.