We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
defplusMinus(arr):# Write your code herepos=neg=zer=0foriinarr:ifi<0:neg+=1elifi>0:pos+=1else:zer+=1print("{:.6f}".format(pos/len(arr)))print("{:.6f}".format(neg/len(arr)))print("{:.6f}".format(zer/len(arr)))
Plus Minus
You are viewing a single comment's thread. Return to all comments →
Python based implementation