Skip to content

Commit 91fc4f9

Browse files
authored
Update sum_array.py
1 parent 39d424d commit 91fc4f9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sum_array.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ def sum_arr(n):
55
return res
66

77
nums = [52345,746587,98589,54398,9348,45887,49856]
8-
test = sum_arr(nums) #Python built in method of adding list all element
8+
test = sum_arr(nums)
9+
10+
#sum() is Pythons built in method of adding all the elements in a list
911
if test == sum(nums):
1012
print("Sum of arr: {}".format(test))
1113
else:

0 commit comments

Comments
 (0)