Q. What is the result of len(‘text’) and len([1, 2, 3]) with polymorphism?
Solution:
len() works polymorphically, returning 4 for ‘text’ and 3 for [1, 2, 3].
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.
len() works polymorphically, returning 4 for ‘text’ and 3 for [1, 2, 3].
Strengthen Your Practice with our comprehensive question bank.