class Solution(object):

    def runningSum(self, nums):
        """
        :type nums: List[int]
        :rtype: List[int]
        """
        x = 0
        result = []
        for i in nums:
            x = x + i
            result.append(x)
        return result


s = Solution()
print(s.runningSum([1, 2, 3, 4]))
print(s.runningSum([1, 1, 1, 1, 1]))

c47b2e6b96c1e40d776c6b9ac6bb2760e06e6a70
class Solution(object):
    <mask token>


<mask token>

class Solution(object):

    def runningSum(self, nums):
        """
        :type nums: List[int]
        :rtype: List[int]
        """
        x = 0
        result = []
        for i in nums:
            x = x + i
            result.append(x)
        return result


<mask token>

class Solution(object):

    def runningSum(self, nums):
        """
        :type nums: List[int]
        :rtype: List[int]
        """
        x = 0
        result = []
        for i in nums:
            x = x + i
            result.append(x)
        return result


<mask token>
print(s.runningSum([1, 2, 3, 4]))
print(s.runningSum([1, 1, 1, 1, 1]))

class Solution(object):

    def runningSum(self, nums):
        """
        :type nums: List[int]
        :rtype: List[int]
        """
        x = 0
        result = []
        for i in nums:
            x = x + i
            result.append(x)
        return result


s = Solution()
print(s.runningSum([1, 2, 3, 4]))
print(s.runningSum([1, 1, 1, 1, 1]))
