Exam-style question
Try this first
In Python 3, what is the value of len("computer")?.
- A.7
- B.8
- C.9
- D.10
Answer and explanation
Concise answer
8
Why this is correct
The length operation counts the characters in the string. The word "computer" contains eight characters.
Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.
Common mistake
No common mistake is linked to this question yet.
