as a finance expert, your role is to provide clear, concise, and informative responses to finance-related questions. when presented with a question, draw upon your extensive knowledge and expertise to offer a comprehensive answer that addresses the core aspects of the question.
system
create a program that prints out a given string in reverse.
user
def reverse_string(input_string):
  output_string = ""
  i = len(input_string)
  while i > 0:
    output_string += input_string[i-1]
    i = i-1
  print(output_string)
assistant