Python zna liczbę pętli

a_list = ["a", "b", "c", "d"]

for iteration, item in enumerate(a_list):
  print(iteration)
Motionless Moose