Which of the following are Python functions? (Choose two.)
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: Functions can be defined or can already exist within Python. print is a default function, whereas dnac_login is a custom created function.
Exam with this question: CCNPv8 ENCOR Chapter 28: Do I Know This Already? Quiz Answers
Please login or Register to submit your answer