What does this code print? python for i in range(1, 10, 3): print(i, end=' ')
- 1 2 3
- 1 4 7 10
- 3 6 9
- 1 4 7
Answer
D) 1 4 7
range(1, 10, 3) starts at 1, steps by 3 and stops before 10. SLO CS-11-C-02 · Application
Computer Science MCQ · More Unit 3: Programming Fundamentals MCQs · Practise