Quiz Catalog

Catalog of quizzes

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

itr = iter(lst)

a = next(itr)
b = next(itr)

print(a, b)
2 5
  • build-in/iter
  • build-in/next
  • list/literal