Zipping Two Lists into Tuples

  • Share this:

Code introduction


This function pairs elements from two lists and returns a list of tuples.


Technology Stack : Built-in function zip

Code Type : Function

Code Difficulty : Intermediate


                
                    
def zipping_lists(list1, list2):
    return list(zip(list1, list2))