I want to slice an array of 64 items in eight parts and for that used the following method but it displayed a syntax error
for i in range(8):
s = slice(8i,(8i+7))
inparr = cornersort[s]
and
for i in range(8):
inparr = cornersort[8i,(8i+7)]
Both show the Error message:
s = slice(8i,(8i+7))
^
SyntaxError: invalid syntax
However when I removed the for loop iterable 'i'; the code worked. Please help how to fix this.