Question Detail
Question
What is the purpose of the
len() function when working with strings?
Correct Answer
Option C is the correct answer.
Detailed Explanation
Page 8, 'The len() Function', clearly states, 'The len() function counts the number of characters in a string.'
Hint
The name of the function itself provides a strong clue about its purpose.