diff options
Diffstat (limited to 'progs/a565.py')
-rw-r--r-- | progs/a565.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/progs/a565.py b/progs/a565.py new file mode 100644 index 0000000..2322588 --- /dev/null +++ b/progs/a565.py @@ -0,0 +1,6 @@ +def remove_even(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 |