user
Create a function that takes a string as an input and outputs the reversed string.

assistant
def reverse_string(s): 
  str = "" 
  for i in s: 
    str = i + str
  return str 
  
print(reverse_string("Hello World"))