Quiz Catalog

Catalog of quizzes

numbers = [2, 3, 1, -2, 0]

for i in enumerate(numbers):
  if i[0] == 0:
    if i[1] == 0:
      print(i)
  else:
    continue

print(i)
(4,0)
  • statement/for
  • build-in/enumerate

data = ['bread', 'milk', 'butter']

enumerate_num = enumerate(data, 1)

print(list(enumerate_num))
Roma
  • build-in/enumerate
  • build-in/list
  • list/literal