CompTIA
PT0-002 · Question #319
Within a Python script, a line that states print (var) outputs the following: [{'1' : 'CentOS', '2' : 'Ubuntu'}, {'1' : 'Windows 10', '2' : 'Windows Server 2016'}] Which of the following objects or da
Sign in or unlock PT0-002 to reveal the answer and full explanation for question #319. The question stem and answer options stay visible for context.
Tools and Code Analysis
Question
Within a Python script, a line that states print (var) outputs the following:
[{'1' : 'CentOS', '2' : 'Ubuntu'}, {'1' : 'Windows 10', '2' : 'Windows Server 2016'}] Which of the following objects or data structures is var?
Options
- AAn array
- BA class
- CA dictionary
- DA list
Unlock PT0-002 to see the answer
You've previewed enough free PT0-002 questions. Unlock PT0-002 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#Python#Data structures#Lists#Dictionaries