Q. What does the Python slice notation [1:3] return for a list?
Solution:
The slice notation [1:3] returns elements from index 1 up to, but not including, index 3, so indices 1 and 2.
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.