Combine two sequences of any length into a list of sublists, stopping at the shorter input.
Constraints
Example
>>> zip_lists([1, 2, 3], ['a', 'b', 'c']) [[1, 'a'], [2, 'b'], [3, 'c']] >>> zip_lists([1, 2], ['x', 'y', 'z']) [[1, 'x'], [2, 'y']] >>> zip_lists([], [1, 2, 3]) []
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints