input: from typing import Optional
  
  def create_html_form(action: str, method: str = "post", submit_label: Optional[str] = None) -> str:
      """ Create an HTML form with a submit button to send information to a specified Python program.
      The form's action attribute is set to the given action string, and the method is set to the given method string.
      If submit_label is provided, the submit button will display the given label; otherwise, it will display 'Submit'.
      >>> create_html_form("action.py", "post", "Send")
      '<form action="action.py" method="post">\\n    <input type="submit" value="Send">\\n</form>'
      >>> create_html_form("action.py")
      '<form action="action.py" method="post">\\n    <input type="submit" value="Submit">\\n</form>'
      """
      submit_value = submit_label if submit_label else "Submit"
      return f'<form action="{action}" method="{method}">\n    <input type="submit" value="{submit_value}">\n</form>'
output:     submit_value = submit_label if submit_label else "Submit"
      return f'<form action="{action}" method="{method}">\n    <input type="submit" value="{submit_value}">\n</form>'