Skip to content

Commit 823fd70

Browse files
solution
1 parent 357758f commit 823fd70

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

SumOfPositive.py

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
def positive_sum(arr):
2+
x = 0
3+
for i in arr:
4+
if i > 0:
5+
x += i
6+
return x

0 commit comments

Comments
 (0)