I have array of attachmentList
and
if I do
len(attachmentList)
the result is 199930; and I would like to send 999 elements each time to api_request(attachment) function
so pseudo code will be like this
count=0
for (i=0,i<len(attachmentList),i++)
count++
if count=999:
api_request(attachmentList[i-999:i])
count=0
What is the way to write for loop or there is another solution for that.