Vidyalelo
Python · Q48

MCQs for Python Dictionaries: Exam

Programming · Python · question 48

Q48

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

A.
True
B.
False
Answer

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board