builder pattern if __name__ ="__main__"fields ["name""age""email""telephone"build_html_form(fieldsas mentioned in the beginning of this webforms (and forms in generalcould have many more field types than simple text fields we could add more field types to the form using named parameters look at the following codewhere we will add checkboxes html_ form_ generator py def generate_webform(text_field_list=[]checkbox_field_list=[])generated_fields "\njoinmaplambda '{ }:format( )text_field_list generated_fields +"\njoinmaplambda { }format( )checkbox_field_list return "{fields}format(fields=generated_fieldsdef build_html_form(text_field_list=[]checkbox_field_list=[])with open("form_file html"' 'as ff write"{}formatgenerate_webformtext_field_list=text_field_listcheckbox_field_list=checkbox_field_list