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?