Question: 
Write a python function to remove the characters which have odd index values of a given string.


Model's Code:
def odd_values_string(s):
    return s[::2]



Sample Correct Code:
def odd_values_string(str):
  result = "" 
  for i in range(len(str)):
    if i % 2 == 0:
      result = result + str[i]
  return result


Asserts:
assert odd_values_string('abcdef') == 'ace'
assert odd_values_string('python') == 'pto'
assert odd_values_string('data') == 'dt'


Tests:
Test 1 of 3: PASS
Test 2 of 3: PASS
Test 3 of 3: PASS

Test 226 of 974: 166/226 (73.45132743362832%): success