πŸ“Š Python
Q. What does `__dict__` do in a Python object?
  • (A) Lists class variables
  • (B) Stores method references
  • (C) Stores attributes in dictionary form
  • (D) Displays inheritance tree
πŸ’¬ Discuss
βœ… Correct Answer: (C) Stores attributes in dictionary form

Explanation: `__dict__` is a dictionary containing all the writable attributes of an object.

Explanation by: Mr. Dubey
`__dict__` is a dictionary containing all the writable attributes of an object.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
51
Total Visits
πŸ“½οΈ
11 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
83%
Success Rate