Perbedaan Python antara elemen berturut -turut dalam daftar

a = [0, 1, 2, 3]
[x - a[i - 1] for i, x in enumerate(a)][1:]
Jealous Jackal