Refer to the exhibit. The Python script fails. Which modification allows the script to finish successfully?
A variable defined inside set_interfaces() is local to that function. The list must be assigned from the function’s return value in main() before main() can iterate over interfaces.
set_interfaces()
main()
interfaces
Community Discussion