Which Python code snippet prints the descriptions of disabled interfaces only?

Posted by: Pdfprep Category: 350-401 Tags: , ,

Refer to the exhibit.

Which Python code snippet prints the descriptions of disabled interfaces only?
A . for interface in netconf data["GigabitEthernet“]:
if interface["enabled"] l= ‘false";
print(interface["description"])
B . for interface in netconf data["GigabitEthernet"’]:
if interface["enabled"] =’true":
print(interface["description"])
C . for interface in netconf_data["GigabitEthernet"]:
print(interface["enabled""])
print(interface["description"])
D . for interface in netconf data["GigabitEthernetT
if interface["enabled"] = ‘true":
print(interface["description"])

Answer: D

Leave a Reply

Your email address will not be published.