I m new to python , I have looping issue to get chuck of data for a list.
I have large list where I need to use chunk of it until it becomes entirely nil.
Lets say I have list as :
a = range(4000) # range 100 -9k
n = 99
while a:
x = a[:n] # want to use first 100 elements
some insertion work of (x) in dB
a = a[n+1 :] reducing first 100 elements from main list
but this method is not working .
Can anybody suggest me a proper approach for this.
Thanks