Q. Which of these is not a special method in Python?

  • (A) __len__
  • (B) __size__
  • (C) __init__
  • (D) __str__
πŸ’¬ Discuss
βœ… Correct Answer: (B) __size__
Explanation: __size__ is not a valid Python dunder (double underscore) method.
Explanation by: Mr. Dubey
__size__ is not a valid Python dunder (double underscore) method.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
98
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
94%
Success Rate