Paginate list of items function into python

Python -- Posted on April 15, 2021

Paginate list of items function into python

              
                def paginate_list(mylist, number_of_items):
    return [mylist[i:i+number_of_items] for i in range(0, len(mylist), number_of_items)]
                  
   
            

Related Posts