summaryrefslogtreecommitdiff
path: root/progs/a251.py
diff options
context:
space:
mode:
Diffstat (limited to 'progs/a251.py')
-rw-r--r--progs/a251.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/progs/a251.py b/progs/a251.py
new file mode 100644
index 0000000..d1259bd
--- /dev/null
+++ b/progs/a251.py
@@ -0,0 +1,5 @@
+def remove_negs(num_list):
+ for item in num_list:
+ if item < 0:
+ num_list.remove(item)
+ return num_list \ No newline at end of file