input: def generate_html_table(genre: str, limit: int) -> str:
      """Generate an HTML table displaying information about the top bestselling books in a specific genre.
      >>> generate_html_table('Fantasy', 10)
      '<table><tr><th>Title</th><th>Author</th><th>Genre</th><th>Sales</th></tr><tr><td>Title1</td><td>Author1</td><td>Fantasy</td><td>1000</td></tr><tr><td>Title2</td><td>Author2</td><td>Fantasy</td><td>900</td></tr><tr><td>Title3</td><td>Author3</td><td>Fantasy</td><td>800</td></tr><tr><td>Title4</td><td>Author4</td><td>Fantasy</td><td>700</td></tr><tr><td>Title5</td><td>Author5</td><td>Fantasy</td><td>600</td></tr><tr><td>Title6</td><td>Author6</td><td>Fantasy</td><td>500</td></tr><tr><td>Title7</td><td>Author7</td><td>Fantasy</td><td>400</td></tr><tr><td>Title8</td><td>Author8</td><td>Fantasy</td><td>300</td></tr><tr><td>Title9</td><td>Author9</td><td>Fantasy</td><td>200</td></tr><tr><td>Title10</td><td>Author10</td><td>Fantasy</td><td>100</td></tr></table>'
      """
      import sqlite3
  
      conn = sqlite3.connect('books.db')
      c = conn.cursor()
  
      c.execute(f'''SELECT title, author, genre, sales
      FROM Books
      WHERE genre=?
      ORDER BY sales DESC
      LIMIT ?''', (genre, limit))
  
      results = c.fetchall()
  
      html = '<table>'
      html += '<tr><th>Title</th><th>Author</th><th>Genre</th><th>Sales</th></tr>'
  
      for result in results:
          title = result[0]
          author = result[1]
          _genre = result[2]
          sales = result[3]
          html += f'<tr><td>{title}</td><td>{author}</td><td>{_genre}</td><td>{sales}</td></tr>'
  
      html += '</table>'
  
      return html
output:     conn.close()