code: def insert(self, s):
          '''
          Insert string @s at the current cursor location.
          '''
          for c in s:
              self.text.insert(self.cursor_loc, c)
              self.cursor_loc += f insert(self, s):
          '''
          Insert string @s at the current cursor location.
          '''
          for c in s:
              self.text.insert(self.cursor_loc, c)
              self.cursor_loc += 1
docs: Insert string @s at the current cursor location.