The zip() purpose pairs factors from two lists into tuples, as well as the dict() constructor converts these tuples into a dictionary. It’s a simple method to map keys to values.
Learn regarding the designed-in https://iwanskej994639.wikitidings.com/5914668/the_5_second_trick_for_python_data_structures