Let’s check out some exercises that will help understand zip() function better.
Using zip() function and list() function, create a merged list of tuples from the two lists given.
First create a range from 1 to 8. Then using zip, merge the given list and the range together to create a new list of tuples.
Using zip and dict functions create a dictionary which has its key-value pairs coming from lst1 and lst2.