What does this program print? python data = [3, 8, 12, 17, 23] print(data.index(17))

  1. 3
  2. -1
  3. 4
  4. 2
Answer

A) 3

Indexes start at 0: 3→0, 8→1, 12→2, 17→3. SLO CS-11-B-02

Computer Science MCQ · More Unit 2: Computational Thinking and Algorithms MCQs · Practise