Implementing zip_longest Function

  • Share this:

Code introduction


Returns an iterator that merges the given iterable objects into a new iterator. If an iterable object is shorter, it is filled with fillvalue


Technology Stack : Built-in library

Code Type : Function

Code Difficulty : Intermediate


                
                    
def zip_longest(*args, fillvalue=0):
    pass