You are viewing a single comment's thread. Return to all comments →
def plusMinus(arr): count=[0] * 3 for itr, num in enumerate(arr): if num== 0: count[2]+=1 elif num > 0: count[0]+= 1 elif num < 0: count[1]+= 1 for a in count: print(a/len(arr))
Seems like cookies are disabled on this browser, please enable them to open this website
Plus Minus
You are viewing a single comment's thread. Return to all comments →