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
"""
nums_list = self.nums[i:j+1]
ret = 0
ret = sum(nums_list)
return ret
```