summaryrefslogtreecommitdiff
path: root/progs/a18.py
diff options
context:
space:
mode:
Diffstat (limited to 'progs/a18.py')
-rw-r--r--progs/a18.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/progs/a18.py b/progs/a18.py
new file mode 100644
index 0000000..3b6d7ce
--- /dev/null
+++ b/progs/a18.py
@@ -0,0 +1,10 @@
+def move_num(test_str):
+ res = ''
+ dig = ''
+ for ele in test_str:
+ if ele.isdigit():
+ dig += ele
+ else:
+ res += ele
+ res += dig
+ return (res) \ No newline at end of file