A table of metrics is stored row by row (one row per host, one column per metric). Return it column by column. All rows have the same length. An empty table transposes to an empty list.
Implement transpose. Input: rows: list[list]. Returns: list[list].
def transpose(rows: list[list]) -> list[list]:
pass
Run executes the public tests. Submit grades against public and hidden tests.
A table of metrics is stored row by row (one row per host, one column per metric). Return it column by column. All rows have the same length. An empty table transposes to an empty list.
Implement transpose. Input: rows: list[list]. Returns: list[list].
def transpose(rows: list[list]) -> list[list]:
pass
Run executes the public tests. Submit grades against public and hidden tests.