Python Programming - Classes - Discussion
Discussion Forum : Classes - General Questions (Q.No. 19)
19.
What is the purpose of the
__len__
method?
Answer: Option
Explanation:
The
__len__
method is used to define the behavior of the len()
function on an object. It is commonly implemented for objects that represent sequences, allowing the determination of their length.
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