Using the third step argument

suggest change
lst = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h']

lst[::2]
# Output: ['a', 'c', 'e', 'g']

lst[::3]
# Output: ['a', 'd', 'g']

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents