Loading the task…
Python's zip groups elements that have the same index across several lists. Given a list of lists rows, where inner lists may have different lengths, build those index-based groups yourself. Return a list of groups, stopping at the shortest inner list; if there are no input lists, return an empty list.
[[1, 2, 3], [4, 5, 6]][[1, 4], [2, 5], [3, 6]][[1, 2, 3], [4, 5]][[1, 4], [2, 5]][][]def my_zip(rows: list) -> list:
Sign in to see submission history
Sign inSign in to use AI Mentor
Sign inThey run when you press "Submit" — your whole solution is checked against them so you can't hard-code answers for the visible cases.