$ ./guess_the_languageProblem Solving — fill the blank
Problem Solving — fill the blank · hard · #223

What goes in the blank?

# get the index alongside the value
for i, value in ____(items):
    print(i, value)

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

enumerate() yields (index, value) pairs, so no manual counter is needed.
Play Problem Solving ▸