summaryrefslogtreecommitdiff
path: root/progs/a708.py
blob: 84dda653071d1cf795c8ff1ff71db7355ef68714 (plain)
1
2
3
def diff_consecutivenums(nums):
    result = [b-a for a, b in zip(nums[:-1], nums[1:])]
    return result