QuestionQ54

Network

Question Image

Refer to the exhibit. A network engineer must use the Python script and guest shell to display the vPC domain status. The status of Cisco Nexus switches 1 and 2 must be shown, but the code fails and instead shows the status of Cisco Nexus switches 0 and 1. Which code resolves the issue?

Explanation

range(1, 3) iterates over 1 and 2, because the stop value is excluded. Since i is used both in the output and in dd[i], this change selects and displays Cisco Nexus switches 1 and 2.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!