Q. The output of this Python code would be
Code:
>>> x={1:”X”,2:”Y”,3:”Z”}
>>> del x
β
Correct Answer: (D)
the del would delete all the keys in dictionary
>>> x={1:”X”,2:”Y”,3:”Z”}
>>> del x
You must be Logged in to update hint/solution