input: Write a function to design a positive feedback loop for a given Python program. The input program repeatedly prints "hello" 10 times. The output program should print "hello" 10 times and then print "You've got it!" as positive feedback when the loop completes.
  assert feedback_loop("for i in range(10):\n    print('hello')")=="for i in range(10):\n    print('hello')\n    i += 1\n    if i == 10:\n        print('You've got it!')"
  assert feedback_loop("print('Hello!')\nfor i in range(5):\n    print('Hi')")=="print('Hello!')\nfor i in range(5):\n    print('Hi')\n    i += 1\n    if i == 5:\n        print('You've got it!')"
  assert feedback_loop("")==""
  assert feedback_loop("print('This is a simple print')")=="print('This is a simple print')"
output: def feedback_loop(program):
      if not program:
          return program
      lines = program.split('\n')
      loop_line = None
      for i, line in enumerate(lines):
          if 'range' in line and 'for' in line:
              loop_line = i
              break
      if loop_line is None:
          return program
      loop_range = lines[loop_line].split('range(')[1].split(')')[0]
      if ':' in loop_range:
          loop_range = loop_range.split(':')[0]
      loop_range = int(loop_range)
      feedback_line = f"    i += 1\n    if i == {loop_range}:\n        print('You've got it!')"
      lines.insert(loop_line + 1, feedback_line)
      return '\n'.join(lines)