Skip to content
Predict the Output

Slices

Without running it, write exactly what this prints.
1nums = [3, 1, 4, 1, 5, 9, 2]
2print(nums[1:5:2], nums[-2])