Tuesday, February 1, 2022

Sum of positive Codewars Python


def positive_sum(arr):
     return sum(i for i in arr if i > 0)

# Sum if i is greater than 0



Related Posts


No comments :

Post a Comment