If I have a loop for example:
for i in nums:
print(i) #print current item
print(NEXT ITEM IN LIST FROM CURRENT POS)
How would I get it to print the current item and then the next item relevant to the current item?
I want it to print every first item + the next item
so a list of nums 1 2 3 4 5 would print:
1
2
3
4
5
not
1
2
2
3
3
4
4
5
5
I hope it makes sense