array of n numbers and find separately the sum of positive and negative number in python code example
Example: sum of positive numbers in array with negative python
def positive_sum(numbers):
positive_sum = 0
for n in numbers:
if n > 0:
positive_sum += n
return positive_sum
positive_sum([1,-4,7,12])