• + 0 comments

    def plusMinus(arr):

    # Complete this function
    positive = sum(x > 0 for x in arr) / len(arr)
    negative = sum(x < 0 for x in arr) / len(arr)
    zero = sum(x == 0 for x in arr) / len(arr)
    
    print('%.6f' % positive,'%.6f' % negative, '%.6f' % zero, sep="\n")