Which of the following statements is true about dictionaries?
A) Dictionary keys are immutable.
B) It is not possible to update the entries of a dictionary.
C) Keys can change, but values cannot.
D) One key can correspond to more than one value

See Answers (1)

Suggested Answer

The statement that is true about dictionaries is option A) Dictionary keys are immutable.Do dictionaries change or remain the same?A dictionary is a changeable, unordered Python container used to store mappings between distinct keys and values. Curly brackets () are used for dictionaries, as well as key-value pairs with commas between them (,).Note that A dictionary's keys cannot be accessed using its values, but its values can be obtained using its keys. Since dictionaries themselves are mutable, entries can always be added, deleted, or modified.Therefore, an immutable type must be used for a dictionary key. An integer, float, text, or Boolean value, for instance, can be used as a dictionary key. However, since dictionaries and lists are both mutable, neither one can act as a dictionary key for the other.Learn more about dictionaries fromhttps://brainly.com/question/896784#SPJ1

Related Question in Computers and Technology