ExamVeda
Login
Home
Dictionary in Python
?

The following Python code is invalid.
class demo(dict):
  def __test__(self,key):
    return []
a = demo()
a['test'] = 7
print(a)

Answer & Solution
Correct Answer: Option B
Let's discuss the solution. Join the discussion
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.