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.
- Plus Minus
- Discussions
Plus Minus
Plus Minus
Sort by
recency
|
680 Discussions
|
Please Login in order to post a comment
n=int(input('')) arr = list(map(int, input().split())) def plusMinus(arr): '''counts the number of positive and negative integers as well as zeros ''' pos= 0 neg= 0 zero= 0 for i in arr: if i > 0: pos += 1 elif i < 0: neg +=1 else: zero += 1 return pos, neg, zero arr_count = (plusMinus(arr)) for num in arr_count: print(num/n)
skbp71@gmail.com its my very important Gmail account Gmail haking please recovery my Gmail account
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)
so Kevin Mitnick is a hacker and and a criminal and he will use this i might do this
who are