Skip to content
CodeItRaw
Code Reading
/
Slices
Path
Play
Daily
Leaderboard
tr
Predict the Output
Slices
Without running it, write exactly what this prints.
1
nums = [
3
,
1
,
4
,
1
,
5
,
9
,
2
]
2
print
(nums[
1
:
5
:
2
], nums[-
2
])