I have a list of numbers that I want to iterate over in pairs, but without skipping items. For instance:
myList = [1,2,3,4,5]
for one,two in myList:
print(one,two)
which I want to print,
1,2
2,3
3,4
4,5
I am currently using the list index and am manually getting the additional items, but I want to know if there is a "proper" way to do this.