summaryrefslogtreecommitdiff
path: root/progs/a89.py
blob: d1cff1d00fc24c2347e927e39496dc2d59c449b7 (plain)
1
2
3
def mul_consecutive_nums(nums):
    result = [b*a for a, b in zip(nums[:-1], nums[1:])]
    return result