What is a dictionary in python?
Answer / Mukesh Kumar Singh
A dictionary in Python is a collection of key-value pairs, where keys are unique and immutable objects (like strings or integers) and values can be any object. Dictionaries are defined using curly braces `{}` and are indexed by their keys rather than their position like lists. Keys must be unique within the dictionary, but values do not have to be.
| Is This Answer Correct ? | 0 Yes | 0 No |
Where is freeze for windows?
Mention the concept used in python for memory managing
What a blank curly brace initialize? A dictionary or a set?
Difference between __str__ and __repr__ in python?
What are literals in python?
Is python faster than python2?
How do you upgrade pip?
What language is python written in?
Explain a few methods to implement functionally oriented programming in python?
What is after quad?
How do I sort a list in python 3?
What is range() in python? Give an example to explain it.