1class Solution:2def runningSum(self, nums: List[int]) -> List[int]:3# The variable that will have the running sum4tot = 05# The array that will hold the running su,6ans = []7# For loop8for ele in nums:9# Adding the element10tot += ele11# Appending this running sum to ans12ans.append(tot)13# Return ans14return ans