Cisco
300-615 · Question #206
Refer to the exhibit. A network engineer must display the status of the vPC domain using the Python script and guest shell. The status of Cisco Nexus switches 1 and 2 must be displayed, but the code…
The correct answer is C. for i in range(1,3): on line 4. See the full explanation below for the reasoning.
Question
Refer to the exhibit. A network engineer must display the status of the vPC domain using the Python script and guest shell. The status of Cisco Nexus switches 1 and 2 must be displayed, but the code fails and displays the status of Cisco Nexus switches 0 and 1 instead. Which code resolves the issue?
Exhibits
Options
- Aprint ('Show VPC On Switch', [i] + 1, '\n') on line 5
- Bprint ('Show VPC On Switch', i + 2, '\n') on line 5
- Cfor i in range(1,3): on line 4
- Dfor i in range(1-2): on line 4
How the community answered
(29 responses)- A7% (2)
- B17% (5)
- C72% (21)
- D3% (1)
Community Discussion
No community discussion yet for this question.

