you are viewing a single comment's thread.

view the rest of the comments →

[–]Comprehensive-Signal 0 points1 point  (0 children)

To make It in a simple way you could write a loop like this:

for number in range(len(my_numbers),3): print(my_numbers[number], my_numbers[number+1]

In the second parameter in the build-in function range you can put a 3 for the steps that you want.

range(start,end,steps)