title: How do I make an HTML button execute python code onclick?
body: <p>I’m new to web development. I have learned how to make a web sever using flask. What I want to do is make an html button run python code from the web server when it is clicked. Is this even possible? If so, can someone point me to some html examples that can do that?</p>
  <p>Update: I think I found some code that might work with what I’m asking. I don’t know for sure if it would work or not.</p>
  <p>Here is the link:
  <a href="https://stackoverflow.com/questions/5615228/call-a-python-function-within-a-html-file">Call a python function within a html file</a></p>
  <p>If I were to convert the “click a link” aspect of the code to “click a button” would it run my python code on the viewers end, not my end?</p>