15
AssignmentMultiple Select

Variables and Data Types

Question 15 • Introduction to Information Technology - EL3701

Identify the correct characteristics of a Python dictionary. Check all that apply.

Answer
A
A Python dictionary is a container.
B
A Python dictionary has keys and corresponding values.
C
A Python dictionary is enclosed in curly braces { }.
D
A Python dictionary can store any combination of Python objects.

Explanation

A dictionary is a container that stores data as key-value pairs, so A and B are correct. Dictionary literals are written with curly braces, as in {"name": "Ari"}, making C correct. The keys and values can be different kinds of Python objects, so a dictionary can store a combination of object types, as D says.

AI-written and checked against the verified answer.

Previous
Next