summaryrefslogtreecommitdiff
path: root/progs/a31.py
diff options
context:
space:
mode:
Diffstat (limited to 'progs/a31.py')
-rw-r--r--progs/a31.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/progs/a31.py b/progs/a31.py
new file mode 100644
index 0000000..85a4db1
--- /dev/null
+++ b/progs/a31.py
@@ -0,0 +1,5 @@
+def move_zero(num_list):
+ a = [0 for i in range(num_list.count(0))]
+ x = [ i for i in num_list if i != 0]
+ x.extend(a)
+ return (x) \ No newline at end of file