user
Task: Create a Python function which reverses the characters in a string.
Input: String = "Hello World"
Output:
assistant
def reverse(string): 
  str = "" 
  for i in string: 
    str = i + str
  return str
  
print(reverse("Hello World"))

# Output: dlroW olleH