Skip to content
RED SAGSkills
medium10 pts · first answer countspythonbatch-inference

Splitting requests into batches

What does this code print?

items = list(range(10))
batches = [items[i:i + 4] for i in range(0, len(items), 4)]
print(len(batches), batches[-1])
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions