Answers for "how to select number by twos in a list python next to each"

-2

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]
Posted by: Guest on August-05-2020

Code answers related to "how to select number by twos in a list python next to each"

Python Answers by Framework

Browse Popular Code Answers by Language