Skip to main content
code•predict output•python
0s
+10 XP

Python List Slicing Step

What is the output of this Python slicing expression?

python
nums = [10, 20, 30, 40, 50]
print(nums[1:4:2])
Exit to Challenges