Q. Which method clears all items from a dictionary?
Solution:
clear() removes all items, e.g., {}.clear() results in an empty dictionary.
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.
clear() removes all items, e.g., {}.clear() results in an empty dictionary.
Strengthen Your Practice with our comprehensive question bank.