diff options
Diffstat (limited to 'progs/a684.py')
-rw-r--r-- | progs/a684.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/progs/a684.py b/progs/a684.py new file mode 100644 index 0000000..03db71e --- /dev/null +++ b/progs/a684.py @@ -0,0 +1,8 @@ +def find_demlo(s):
+ l = len(s)
+ res = ""
+ for i in range(1,l+1):
+ res = res + str(i)
+ for i in range(l-1,0,-1):
+ res = res + str(i)
+ return res
\ No newline at end of file |