<filename>1401-1500/1471-1480/1480-runningSumOf1DArray/runningSumOf1DArray.py
class Solution(object):
    def runningSum(self, nums):
        """
        :type nums: List[int]
        :rtype: List[int]
        """

        result = nums[:]
        for i in range(1, len(nums)):
            result[i] += result[i-1]

        return result
<filename>1401-1500/1471-1480/1480-runningSumOf1DArray/runningSumOf1DArray.py
class Solution(object):
    def runningSum(self, nums):
        """
        :type nums: List[int]
        :rtype: List[int]
        """

        result = nums[:]
        for i in range(1, len(nums)):
            result[i] += result[i-1]

        return result
:type nums: List[int]         :rtype: List[int]