class NumArray(object):

def **init**(self, nums):

"""

initialize your data structure here.

:type nums: List[int]

"""

self.nums=nums

```
def sumRange(self, i, j):
"""
sum of elements nums[i..j], inclusive.
:type i: int
:type j: int
:rtype: int
"""
sums = 0
for k in range(i,j+1):
sums+=self.nums[k]
return sums
```