input: Write a python function to create an HTML table from a list of dictionaries.
  assert create_html_table([{'First': 'John', 'Last': 'Doe', 'Age': 20}]) == "<html>\n<body>\n<table>\n<tr>\n<th>First</th>\n<th>Last</th>\n<th>Age</th>\n</tr>\n<tr>\n<td>John</td>\n<td>Doe</td>\n<td>20</td>\n</tr>\n</table>\n</body>\n</html>"
  assert create_html_table([{'Name': 'Alice', 'Occupation': 'Engineer'}, {'Name': 'Bob', 'Occupation': 'Artist'}]) == "<html>\n<body>\n<table>\n<tr>\n<th>Name</th>\n<th>Occupation</th>\n</tr>\n<tr>\n<td>Alice</td>\n<td>Engineer</td>\n</tr>\n<tr>\n<td>Bob</td>\n<td>Artist</td>\n</tr>\n</table>\n</body>\n</html>"
  assert create_html_table([]) == "<html>\n<body>\n<table>\n</table>\n</body>\n</html>"
output: def create_html_table(data):
      if not data:
          return "<html>\n<body>\n<table>\n</table>\n</body>\n</html>"
  
      keys = data[0].keys()
      html = "<html>\n<body>\n<table>\n<tr>\n"
      
      for key in keys:
          html += f"<th>{key}</th>\n"
      html += "</tr>\n"
      
      for row in data:
          html += "<tr>\n"
          for key in keys:
              html += f"<td>{row[key]}</td>\n"
          html += "</tr>\n"
      
      html += "</table>\n</body>\n</html>"
      return html