What is printed? python a = [10, 20, 30, 40] print(a[1:3])
- [20, 30]
- [10, 20]
- [10, 20, 30]
- [20, 30, 40]
Answer
A) [20, 30]
Slicing includes the start index and excludes the stop index. SLO CS-11-C-05
Computer Science MCQ · More Unit 3: Programming Fundamentals MCQs · Practise