PYTHON CORE · LESSON 27
Piece of list
Slices · about 11 minutes
Learning with progressRead the summary for free. To save the work, log in to the account.
Type the code yourself
Reprint the list and slice from the sample.
nums = [2, 4, 6, 8]
print(nums[1:3])Open the editor for class workSolve it yourself
Create nums = [1, 2, 3, 4]. Output the cut with the second and third element.
The answer is hidden. Use similar examples from the lesson notes.
Opening up your homework