input: Write a Python program to generate an HTML table displaying information about the top 10 bestselling books in a specific genre.
  
  def generate_html_table_for_top_books(genre):
      import sqlite3
      conn = sqlite3.connect('books.db')
      c = conn.cursor()
      c.execute('''SELECT title, author, genre, sales
      FROM Books
      WHERE genre=?
      ORDER BY sales DESC
      LIMIT 10''', (genre,))
      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
  
  assert generate_html_table_for_top_books('Fantasy') == '<table><tr><th>Title</th><th>Author</th><th>Genre</th><th>Sales</th></tr><tr><td>The Hobbit</td><td>J.R.R. Tolkien</td><td>Fantasy</td><td>100000000</td></tr><tr><td>Harry Potter</td><td>J.K. Rowling</td><td>Fantasy</td><td>80000000</td></tr></table>'
  assert generate_html_table_for_top_books('Mystery') == '<table><tr><th>Title</th><th>Author</th><th>Genre</th><th>Sales</th></tr><tr><td>The Da Vinci Code</td><td>Dan Brown</td><td>Mystery</td><td>50000000</td></tr><tr><td>The Girl with the Dragon Tattoo</td><td>Stieg Larsson</td><td>Mystery</td><td>30000000</td></tr></table>'
  assert generate_html_table_for_top_books('Sci-Fi') == '<table><tr><th>Title</th><th>Author</th><th>Genre</th><th>Sales</th></tr><tr><td>Dune</td><td>Frank Herbert</td><td>Sci-Fi</td><td>20000000</td></tr><tr><td>Ender\'s Game</td><td>Orson Scott Card</td><td>Sci-Fi</td><td>15000000</td></tr></table>'
  assert generate_html_table_for_top_books('Romance') == '<table><tr><th>Title</th><th>Author</th><th>Genre</th><th>Sales</th></tr></table>'
output: def generate_html_table_for_top_books(genre):
      import sqlite3
      conn = sqlite3.connect('books.db')
      c = conn.cursor()
      c.execute('''SELECT title, author, genre, sales
      FROM Books
      WHERE genre=?
      ORDER BY sales DESC
      LIMIT 10''', (genre,))
      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