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])
What is the output of this Python slicing expression?
nums = [10, 20, 30, 40, 50] print(nums[1:4:2])