def running_total(nums):
    total = 0
    for i, value in enumerate(nums):
        total += value
        nums[i] = total
    return nums
