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)]
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)]