हिंदी

Identify the invalid Python statement from the following. - Computer Science (Python)

Advertisements
Advertisements

प्रश्न

Identify the invalid Python statement from the following.

विकल्प

  • d = dict()

  • e = {}

  • f = []

  • g = dict{}

MCQ

उत्तर

g = dict{}

Explanation:

The form of the dict() function is =dict(). The Python syntax g=dict{} is incorrect.

shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
2023-2024 (February) Set 4
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×