Calling python function from html file

Hi all
I have an a.html file and a.py file
in the a.html file, i have one form and a submit button
in the a.py 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