Exam-style question
Try this first
What is printed by this Python code?.
- A.0
- B.1
- C.2
- D.3
Answer and explanation
Concise answer
0
Why this is correct
The values are at indices 0 through 3. The target value 4 is the final item, so the search prints index 3 and stops.
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.
