input: Write a function to determine if it is possible to create a HTML page that displays a table of contents from the data stored in a database. If it is possible return "Yes" else return "No". If the input data is empty then return "No".
  assert create_html_toc(True, ["Chapter 1", "Chapter 2", "Chapter 3"]) == "Yes"
  assert create_html_toc(False, ["Chapter 1", "Chapter 2", "Chapter 3"]) == "No"
  assert create_html_toc(True, []) == "No"
  assert create_html_toc(False, []) == "No"
output: def create_html_toc(database_connected, chapters):
      if not chapters:
          return "No"
      if database_connected:
          return "Yes"
      return "No"