if i have index of 30 but list of 3 items, how can i iterate the list couple times python code example
Example: how to select number by twos in a list python next to each
A = [1, 2, 3, 4, 5]
for i in range(len(A) - 1):
value = A[i:i+2]
A = [1, 2, 3, 4, 5]
for i in range(len(A) - 1):
value = A[i:i+2]