Cisco DCAUTO 300-635 Practice Questions - Automating Cisco Data Center Solutions V1.1 (DCAUTO 300-635) Exam

Access More Questions
Given the Python snippet `data = {'leaf1': 'on', 'leaf2': 'off'}`, which expression returns a list of keys whose value is the string 'on'?
Correct Answer:
[k for k, v in data.items() if v == 'on']

Access more questions from this quiz

Continue to Cisco DCAUTO 300-635 Practice Questions - Automating Cisco Data Center Solutions v1.1 (DCAUTO 300-635) Exam for more practice questions and the full quiz experience.

Access More Questions