Syntax error Python Flask iterating through a dictionary from an imported file and outputting html

Solution
  for key in pet_type:
    html += '''
    
  • {name[key]}
''' return html