summaryrefslogtreecommitdiff
path: root/progs/a48.py
blob: 736523b181d8ab5b9c310ec417115cb564b4d405 (plain)
1
2
3
4
5
def sum_Range_list(nums, m, n):                                                                                                                                                                                                
    sum_range = 0                                                                                                                                                                                                         
    for i in range(m, n+1, 1):                                                                                                                                                                                        
        sum_range += nums[i]                                                                                                                                                                                                  
    return sum_range