input: Below is an instruction that describes a task. Write a response that appropriately completes the request.
  
  ### Instruction:
  Write a Python program to generate an HTML table displaying information about the top 10 bestselling books in a specific genre.
  
  ### Input:
  Table name: Books
  Table columns: id (int), title (string), author (string), genre (string), sales (int)
  
  ### Output:
  Write a function to generate an HTML table displaying information about the top 10 bestselling books in a specific genre.
  
  
  def generate_bestseller_table(genre):
      import sqlite3
  
      # connect to the database
      conn = sqlite3.connect('books.db')
      c = conn.cursor()
  
      # retrieve the data
      c.execute('''SELECT title, author, genre, sales
                   FROM Books
                   WHERE genre=?
                   ORDER BY sales DESC
                   LIMIT 10''', (genre,))
  
      # save the results
      results = c.fetchall()
  
      # generate the HTML code
      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>'
  
      # close the connection
      conn.close()
  
      # return the results
      return html
  
  # Test cases
  assert generate_bestseller_table("Fantasy") == '<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>950</td></tr></table>'
  assert generate_bestseller_table("Mystery") == '<table><tr><th>Title</th><th>Author</th><th>Genre</th><th>Sales</th></tr><tr><td>Title3</td><td>Author3</td><td>Mystery</td><td>900</td></tr><tr><td>Title4</td><td>Author4</td><td>Mystery</td><td>850</td></tr></table>'
  assert generate_bestseller_table("Science Fiction") == '<table><tr><th>Title</th><th>Author</th><th>Genre</th><th>Sales</th></tr><tr><td>Title5</td><td>Author5</td><td>Science Fiction</td><td>800</td></tr><tr><td>Title6</td><td>Author6</td><td>Science Fiction</td><td>750</td></tr></table>'
  
output:     
      import sqlite3
  
      # connect to the database
      conn = sqlite3.connect('books.db')
      c = conn.cursor()
  
      # retrieve the data
      c.execute('''SELECT title, author, genre, sales
                   FROM Books
                   WHERE genre=?
                   ORDER BY sales DESC
                   LIMIT 10''', (genre,))
  
      # save the results
      results = c.fetchall()
  
      # generate the HTML code
      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>'
  
      # close the connection
      conn.close()
  
      # return the results
      return html
  
  # Test cases
  assert generate_bestseller_table("Fantasy") == '<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>950</td></tr></table>'
  assert generate_bestseller_table("Mystery") == '<table><tr><th>Title</th><th>Author</th><th>Genre</th><th>Sales</th></tr><tr><td>Title3</td><td>Author3</td><td>Mystery</td><td>900</td></tr><tr><td>Title4</td><td>Author4</td><td>Mystery</td><td>850</td></tr></table>'
  assert generate_bestseller_table("Science Fiction") == '<table><tr><th>Title</th><th>Author</th><th>Genre</th><th>Sales</th></tr><tr><td>Title5</td><td>Author5</td><td>Science Fiction</td><td>800</td></tr><tr><td>Title6</td><td>Author6</td><td>Science Fiction</td><td>750</td></tr></table>'
  