APIs accept a limited number of items per request. Split items into consecutive batches of at most
size items, keeping the original order. The last batch may be smaller.
Implement chunk. Input: items: list, size: int. Returns: list[list].
def chunk(items: list, size: int) -> list[list]:
pass
Run executes the public tests. Submit grades against public and hidden tests.
APIs accept a limited number of items per request. Split items into consecutive batches of at most
size items, keeping the original order. The last batch may be smaller.
Implement chunk. Input: items: list, size: int. Returns: list[list].
def chunk(items: list, size: int) -> list[list]:
pass
Run executes the public tests. Submit grades against public and hidden tests.