The "zip" function in Python is used to combine multiple iterables into a single iterable. It takes iterables as arguments and returns an iterator of tuples. Each tuple has elements from the corresponding positions of the input iterables. The resulting iterator stops when the shortest input iterable is exhausted.
Example: names = ['Robin', 'Barney', 'Ted']
ages = [30, 31, 32]
combined = zip(names, ages)
for name, age in combined:
print(name, age)
In this example, the "zip" function combines the "names" and "ages" lists into an iterator of tuples. The "for" loop iterates over the tuples, and each tuple's elements are unpacked into the variables "name" and "age" for printing.