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 heretotal=len(arr)positives=len([vforvinarrifv>0])/totalnegatives=len([vforvinarrifv<0])/totalzeros=len([vforvinarrifv==0])/totaldefprint_r(val:float):print(f"{round(val,6)}")print_r(positives)print_r(negatives)print_r(zeros)
Cookie support is required to access HackerRank
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 →