Write a function zip() which accepts two equal-length sequences, sa and sb, as arguments and returns a list of pairs (i.e., of tuples of length two) with the same length as the inputs. The pairs in the returned list should have the element at the corresponding index from sa as the first pair element, and the element from the corresponding index from sb as the second pair element. In other words, if

Solved
Show answers

Ask an AI advisor a question