Quiz Catalog

Catalog of quizzes

lst = [1, 2, 3, 4, 5, 6]

a = lst[slice(0, 5, 2)]

print(a)
[1, 3, 5]
  • build-in/slice
  • list/literal