Calling python function from html file

Hi all
I have an a.html file and file
in the a.html file, i have one form and a submit button
in the file, I have the submit function.
if I click the submit button it should call the submit function in Python
anyone can help me with that, please

Thanks and regards
–Aswin Lakshmanan