CCNP 350-401 ENCOR Question 361 DISCUSSION
« Back to Main MenuRefer to the exhibit. Which Python code snippet prints the descriptions of disabled interfaces only?
A.
for interface in netconf_data["GigabitEthernet"]:
if interfacef["enabled"] != 'true'
print(interface["description"])
B.
for interface in netconf_data["GigabitEthernet"]:
if interfacef["enabled"] != 'true'
print(interface["description"])
C.
for interface in netconf_data["GigabitEthernet"]:
if interfacef["enabled"] != 'false'
print(interface["description"])
D.
for interface in netconf_data["GigabitEthernet"]:
print(interface["enable"])
print(interface["description"])
Refer to the exhibit. Which Python code snippet prints the descriptions of disabled interfaces only?
A.
for interface in netconf_data["GigabitEthernet"]:
if interfacef["enabled"] != 'true'
print(interface["description"])
B.
for interface in netconf_data["GigabitEthernet"]:
if interfacef["enabled"] != 'true'
print(interface["description"])
C.
for interface in netconf_data["GigabitEthernet"]:
if interfacef["enabled"] != 'false'
print(interface["description"])
D.
for interface in netconf_data["GigabitEthernet"]:
print(interface["enable"])
print(interface["description"])
Correct Answer: B