diff options
Diffstat (limited to 'progs/a533.py')
-rw-r--r-- | progs/a533.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/progs/a533.py b/progs/a533.py new file mode 100644 index 0000000..968f72d --- /dev/null +++ b/progs/a533.py @@ -0,0 +1,5 @@ +def sum_range_list(list1, m, n):
+ sum_range = 0
+ for i in range(m, n+1, 1):
+ sum_range += list1[i]
+ return sum_range
\ No newline at end of file |