"""
Given an array of integers, return the sum of all the positive integers in the array.

Examples:

csSumOfPositive([1, 2, 3, -4, 5]) -> 1 + 2 + 3 + 5 = 11
csSumOfPositive([-3, -2, -1, 0, 1]) -> 1
csSumOfPositive([-3, -2]) -> 0
Notes:

If the input_arr does not contain any positive integers, the default sum should be 0.
"""

def csSumOfPositive(input_arr):
    sumOfPos = 0
    for x in input_arr:
        if x > 0:
            sumOfPos = sumOfPos + x
    return sumOfPos
"""
Given an array of integers, return the sum of all the positive integers in the array.

Examples:

csSumOfPositive([1, 2, 3, -4, 5]) -> 1 + 2 + 3 + 5 = 11
csSumOfPositive([-3, -2, -1, 0, 1]) -> 1
csSumOfPositive([-3, -2]) -> 0
Notes:

If the input_arr does not contain any positive integers, the default sum should be 0.
"""

def csSumOfPositive(input_arr):
    sumOfPos = 0
    for x in input_arr:
        if x > 0:
            sumOfPos = sumOfPos + x
    return sumOfPos
Given an array of integers, return the sum of all the positive integers in the array.  Examples:  csSumOfPositive([1, 2, 3, -4, 5]) -> 1 + 2 + 3 + 5 = 11 csSumOfPositive([-3, -2, -1, 0, 1]) -> 1 csSumOfPositive([-3, -2]) -> 0 Notes:  If the input_arr does not contain any positive integers, the default sum should be 0.