Which of the following is a Python dictionary?
a.
dnac = {
"host": "sandboxdnac.cisco.com",
"port": 443,
"username": "devnetuser",
"password": "Cisco123!"
}
b.
[users[root|Jason|Jamie|Luke]]
c.
def dnac_login(host, username, password): url = "https://{}/api/system/v1/auth/token". format(host) response = requests.request("POST", url, auth=HTTPBasicAuth(username, password), headers=headers, verify=False) return response.json()["Token"]
d.
print(dnac_devices)
Explanation: Python uses curly braces ({}) as one way to signify a dictionary.
Exam with this question: CCNPv8 ENCOR Chapter 28: Do I Know This Already? Quiz Answers
Please login or Register to submit your answer