Executing the following snippet -
will cause the dct:
Executing the following snippet -
will cause the dct:
In a dictionary, keys must be unique. When you assign a new value to an existing key, the new value overwrites the old one. Therefore, after executing the given code, the dictionary will hold one key named 'pi' linked to the value 3.1415.
Correct answer is C. Reason is, for keys with same name, the value get overwritten.
C. to hold one key named 'pi' linked to 3.1415