Answers for "python difference between consecutive element in list"

0

python difference between consecutive element in list

a = [0, 1, 2, 3]
[x - a[i - 1] for i, x in enumerate(a)][1:]
Posted by: Guest on April-16-2021

Code answers related to "python difference between consecutive element in list"

Python Answers by Framework

Browse Popular Code Answers by Language