I am having a list that contains 1003 number of elements:
data=["I","am","a","python","programmer".....]
where, len(data)= say 1003
I want to create a subset of this list (data) by dividing the original list into parts of 100. So, as a result:
data_chunk1=[.....] #first 100 items of list data
data_chunk2=[.....] #second 100 items of list data
.
.
.
data_chunk11=[.....] # remainder of the entries,& its len <=100, len(data_chunk_11)=3
Is there a pythonic way to achieve this task?