Informatics Practices
We can create immutable dictionaries in Python.
Python Dictionaries
3 Likes
Answer
False
Reason — We cannot create immutable dictionaries in Python because dictionaries are mutable.
Answered By
2 Likes
Related Questions
List can be used as keys in a dictionary.
Updating an element in a dictionary at runtime is possible.
Which of the statement(s) is/are correct?
- In Python dictionary, the key-value pair is called an item.
- Python dictionary is a mapping of unique keys to values.
- Dictionary is mutable.
- All of these.
To create an empty dictionary, we use the statement as:
- d1 = {}
- d1 = []
- d1 = ()
- d1 == {}