Python Programming - Inheritance - Discussion
Discussion Forum : Inheritance - General Questions (Q.No. 88)
88.
What is the purpose of the
__len__()
method in Python classes?
Answer: Option
Explanation:
The
__len__()
method is used to customize the behavior when the len()
function is called on an instance of the class.
Discussion:
Be the first person to comment on this question !
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers