Courses/Advanced Typing

๐Ÿ”ค Advanced Typing

Slicing Deep Dive

start:stop:step on any sequence.

Slicing returns a new sequence. Negative step reverses; omitting any part defaults to the full range.

main.py
Output
Press Run to execute.
Expected output
[20, 30, 40]
[50, 40, 30, 20, 10]
[10, 30, 50]

Sign in to track your progress across lessons.