We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 357758f commit 823fd70Copy full SHA for 823fd70
SumOfPositive.py
@@ -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