Question Detail
Question
When
len("Hello World!") is executed in Python, what does the function count?
Correct Answer
Option C is the correct answer.
Detailed Explanation
Page 8, under 'Measuring Text', highlights: 'Crucial: It counts spaces and punctuation marks too!'
Hint
Consider the 'Crucial' note provided about the
len() function's behavior.