What is printed? python print([i for i in range(1, 11) if i % 3 != 0])

  1. 3 6 9
  2. 1 2
  3. 1 2 3 4 5 6 7 8 9 10
  4. 1 2 4 5 7 8 10
Answer

D) 1 2 4 5 7 8 10

Multiples of 3 are skipped (continue), the rest are printed. SLO CS-11-C-02

Computer Science MCQ · More Unit 3: Programming Fundamentals MCQs · Practise