QuestionQ6

VerifiedPython/PyEZ

Click the Exhibit button.

>>> print(hardware_count)  
\{"˜MX960':10, "˜SRX300': 22, "˜QFX5100': 4\}  

Referring to the exhibit, which method correctly retrieves only the value associated with "MX960"?

Explanation

A dictionary returns the value for a specific entry by using its key in square brackets. hardware_count["MX960"] accesses the value mapped to the "MX960" key.

Community Discussion

No comments yet. Be the first to start the discussion!