summaryrefslogtreecommitdiff
path: root/progs/a866.py
blob: 651da78dbdef4f84469abf74b761d32415bb9256 (plain)
1
2
3
def add_consecutive_nums(nums):
    result = [b+a for a, b in zip(nums[:-1], nums[1:])]
    return result