summaryrefslogtreecommitdiff
path: root/progs/a692.py
blob: 201442dbcae198be132cd182773853a3d8b0c51c (plain)
1
2
3
4
5
6
def neg_count(list):
  neg_count= 0
  for num in list: 
    if num <= 0: 
      neg_count += 1
  return neg_count