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
Question 2 Important
Question 3 Important
Question 4
Question 5
Question 6 Important
Question 7 Important
Question 8 Important
Question 9
Question 10
Question 11
Question 12 Important
Question 13
Question 14
Question 15
Question 16 Important You are here
Question 17
Question 18
Question 19
Question 20 Important
Question 21 Important
Question 22
Question 23
Question 24 Important
Question 25 Important
Past Year - 2 Mark Questions
Last updated at April 16, 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.