A paginated export returned a list of pages, each a list of records. Flatten it into a single list in order. Pages can be empty. Only one level of nesting needs to be removed.
Implement flatten. Input: pages: list[list]. Returns: list.
def flatten(pages: list[list]) -> list:
pass
Run executes the public tests. Submit grades against public and hidden tests.
A paginated export returned a list of pages, each a list of records. Flatten it into a single list in order. Pages can be empty. Only one level of nesting needs to be removed.
Implement flatten. Input: pages: list[list]. Returns: list.
def flatten(pages: list[list]) -> list:
pass
Run executes the public tests. Submit grades against public and hidden tests.