code: def delete(self, count=1):
          
          if self.cursor_position < len(self.text):
              deleted = self.document.text_after_cursor[:count]
              self.text = self.text[:self.cursor_position] + \
                  self.text[self.cursor_position + len(deleted):]
              return deleted
          else:
              return ''
docs: Delete specified number of characters and Return the deleted text.