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