πŸ“Š Python
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
πŸ’¬ Discuss
βœ… Correct Answer: (D) the del would delete all the keys in dictionary

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
255
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Parvesh Kanani
Publisher
πŸ“ˆ
94%
Success Rate