Quiz 11 Question 16 of 20

In a monitoring script you are reviewing, the Device class defines a class-level vendor = "Cisco" attribute, and every instance stores its own name set in __init__. The script runs d1 = Device("core1"), d2 = Device("edge2"), then executes d1.vendor = "Arista". Which values do d1.vendor, d2.vendor and Device.vendor each show afterwards?

Select an answer to reveal the explanation.

Motivation