Challenge: Tuplezip Algorithm

Practice the knowledge you gained in this section by implementing a general-purpose zipping algorithm.

We'll cover the following

Problem statement

The standard library features many general-purpose algorithms. What’s missing is the zipping algorithm. In fact, different people have different interpretations or understandings of what zipping means—for instance, the zipping algorithm (flatzip).

For this challenge, you’ll use another definition of zipping, which is to take two or more input ranges and create a new range where the elements are tuples formed from the elements of the input ranges.

Get hands-on with 1200+ tech skills courses.