English

Which of the following built-in function/method returns a dictionary?

Advertisements

Question

Which of the following built-in function/method returns a dictionary?

Options

  • dict()

  • keys()

  • values()

  • items()

MCQ
Advertisements

Solution

dict()

Explanation:

The dict() function creates an empty dictionary and returns the memory handle of the dictionary created to the variable on the left.

shaalaa.com
  Is there an error in this question or solution?
2024-2025 (March) Set 4
Advertisements
Share
Notifications



      Forgot password?
Use app×