Items in a Python dictionary are enclosed in which brackets?
ACorner
BColumn
CCurly
DCurved
Answer & Solution
Correct answer: C. Curly
1. Lists use square brackets.
2. A dictionary uses a different pair.
3. Items in a dictionary are enclosed in curly brackets.
4. So the answer is curly.
_Source: syllabus Computer Science, Ch 5 'Getting Started with Python'_
Keep practising Python Programming
Browse all Python Programming questions for BCA, or explore more Computer Science topics.