4. The zip function. In Python
, the zip()
function can be used to combine multiple iterator
objects, such as lists.
If we have two lists, a
and b
, we can combine them with the command zip(a,b)
.
In this exercise, you will define two lists, zip them together, iterate over the zipped object, and print its values.