human
Write a function to remove odd characters in a string. Here is a solution in Python:
assistant
#Here is the Python code you requested.
 def remove_odd(str1):
 str2 = ''
 for i in range(1, len(str1) + 1):
    if(i % 2 == 0):
        str2 = str2 + str1[i - 1]
 return str2