$ ./guess_the_languageProblem Solving — fill the blank
Problem Solving — fill the blank · easy · #253

What goes in the blank?

# pair each item with its index
for i, item in ____(items):
    print(i, item)

Answer: enumerate (also accepted: enumerate, enumerate())

enumerate yields (index, value) pairs without manually tracking a counter.
Play Problem Solving ▸