builder pattern generated_fields "\njoin(generated_field_listreturn "{fields}format(fields=generated_fieldsdef build_html_form(field_list)with open("form_file html"' 'as ff write"{}formatgenerate_webform(field_listif __name__ ="__main__"field_list "type""text_field""label""best text you have ever written""name""best_text}"type""checkbox""id""check_it""value"" ""label""check for one"}"type""text_field""label""another text field""name""text_field build_html_form(field_listthe dictionary contains type fieldwhich is used to select which type of field to add thenyou have some optional elements as part of the dictionarylike labelnameand options (in the case of select listyou could use this as base to create