Exam-style question
Try this first
In Python 3, what is the value of len("computer")?.
- A.7
- B.8
- C.9
- D.10
Model answer
What a good answer should say
- 8
Explanation
Why this works
The length operation counts the characters in the string. The word "computer" contains eight characters.
Common mistake
No common mistake is linked to this question yet.
