If D is a Python dictionary as D={'A': 1, 'B': 2, 'C: 3} Then, which of the…

PYQ KVS TGT/PGT 2023

If D is a Python dictionary as D={'A': 1, 'B': 2, 'C: 3} Then, which of the following command will remove the entire dictionary from the memory?

  1. A.

    del(D)

  2. B.

    D.del()

  3. C.

    D.clear()

  4. D.

    D.remove()

Attempted by 2525 students.

Sign up free to check your answer

Sign up free

Explore the full course: Kvs Nvs Tier 2 Computer Science

Loading lesson…