हिंदी

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

Advertisements

प्रश्न

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

विकल्प

  • dict()

  • keys()

  • values()

  • items()

MCQ
Advertisements

उत्तर

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
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
2024-2025 (March) Set 4
Advertisements
Share
Notifications



      Forgot password?
Use app×