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