diff options
Diffstat (limited to 'progs/a800.py')
-rw-r--r-- | progs/a800.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/progs/a800.py b/progs/a800.py new file mode 100644 index 0000000..a0b3a08 --- /dev/null +++ b/progs/a800.py @@ -0,0 +1,6 @@ +def remove_odd(str1):
+ str2 = ''
+ for i in range(1, len(str1) + 1):
+ if(i % 2 == 0):
+ str2 = str2 + str1[i - 1]
+ return str2
\ No newline at end of file |