I have the following code:
someList = ['a', 'b', 'c', 'd', 'e', 'f']
for i,j in enumerate(someList) step 2:
print('%s, %s' % (someList[i], someList[i+1]))
My question is, is there any way to simplify the iteration over the array in order to avoid the enumerate
part and still accessing two variables at a time?