You are viewing a single comment's thread. Return to all comments →
c=0 d=0 e=0 for i in arr: if i<0: c+=1 if i==0: d+=1 if i>0: e+=1 print(e/n) print(c/n) print(d/n)
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 →
c=0 d=0 e=0 for i in arr: if i<0: c+=1 if i==0: d+=1 if i>0: e+=1 print(e/n) print(c/n) print(d/n)