What does the len() function do?
Answer:
The len( ) function returns the number of items in an object. If the object being passed is a string , then the len( ) function returns the number of characters in the string.
Past Year - 2 Mark Questions
Past Year - 2 Mark Questions
Last updated at Dec. 13, 2024 by Teachoo
Answer:
The len( ) function returns the number of items in an object. If the object being passed is a string , then the len( ) function returns the number of characters in the string.