Skip to content

Commit 39d424d

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sum_array.py

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

77
nums = [52345,746587,98589,54398,9348,45887,49856]
8-
test = sum_arr(nums)
8+
test = sum_arr(nums) #Python built in method of adding list all element
99
if test == sum(nums):
1010
print("Sum of arr: {}".format(test))
1111
else:

0 commit comments

Comments
 (0)