P

Parvesh Kanani • 2.84K Points
Extraordinary

Q. The output of this Python code would be

Code:
>>> x={1:”X”,2:”Y”,3:”Z”}
>>> del x
  • (A) the del method does not exist for dictionary
  • (B) the del would delete the values present in dictionary
  • (C) the del would delete the entire dictionary
  • (D) the del would delete all the keys in dictionary
  • Correct Answer - Option(D)
  • Views: 139
  • Filed under category Python

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics