<jupyter_start><jupyter_text>Zip The zip function makes an iterator that aggregates elements from each of the iterables into tuples. This means that the zip() function is supplied two iterables, and makes an iterator that calls the next() function on both iterables until one of them runs out (or both, if the iterables are of the same size) and returns tuples of (iter1, iter2, ... itern) until either iter1, iter2, or itern runs out of items.    zip(iterable1, iterable2, ....)    Let's see how this could be helpful. ** Example 1 ** Basic zipping of two lists<jupyter_code>lst1 = [1, 3, 4, 5]
lst2 = [6, 4, 3, 4]

combined = list(zip(lst1, lst2))

print(combined)<jupyter_output>[(1, 6), (3, 4), (4, 3), (5, 4)]<jupyter_text>**Example 2** Adding another list to combine personal information<jupyter_code>lst1 = ["Micah", "Joanna", "Rocky", "Mike"]
lst2 = [32, 21, 39, 19]
lst3 = ["F", "F", "M", "M"]

final_lst = list(zip(lst1, lst2, lst3))

print(final_lst)<jupyter_output>[('Micah', 32, 'F'), ('Joanna', 21, 'F'), ('Rocky', 39, 'M'), ('Mike', 19, 'M')]
{'fraction_non_alphanumeric': 0.15894039735099338, 'fraction_numerical': 0.04730368968779565, 'mean_word_length': 4.977401129943503, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '534347', 'license': 'MIT', 'n_tokens_mistral': 416, 'n_tokens_neox': 376, 'n_words': 146, 'path': 'Built-In Functions/zip().ipynb', 'repo_name': 'mohsinhaider/pythonbootcampacm', 'size': '1057'}