summaryrefslogtreecommitdiff
path: root/progs/a692.py
diff options
context:
space:
mode:
Diffstat (limited to 'progs/a692.py')
-rw-r--r--progs/a692.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/progs/a692.py b/progs/a692.py
new file mode 100644
index 0000000..201442d
--- /dev/null
+++ b/progs/a692.py
@@ -0,0 +1,6 @@
+def neg_count(list):
+ neg_count= 0
+ for num in list:
+ if num <= 0:
+ neg_count += 1
+ return neg_count \ No newline at end of file