Home / Python Tips Generated By ChatGPT / The zip Function in Python Combine elements from two or more iterables (lists, tuples, etc.) into pairs. Source Code names = ["Alice", "Bob", "Charlie"] ages = [24, 30, 18] for name, age in zip(names, ages): print(f"{name} is {age} years old.")