English

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

Advertisements
Advertisements

Question

Identify the invalid Python statement from the following.

Options

  • d = dict()

  • e = {}

  • f = []

  • g = dict{}

MCQ

Solution

g = dict{}

Explanation:

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

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

Englishहिंदीमराठी


      Forgot password?
Use app×