Informatics Practices
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 == {}