Which of the following is a Python dictionary?

IT Questions BankCategory: CCNPv8 ENCORWhich of the following is a Python dictionary?

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

Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x