title: Connect JavaScript to Python script with Flask
body: <p>I created an website with HTML/CSS completly on my own. Also use Javascript for events (click on button, ...).</p>
  
  <p>Now i want to connect an python script with it and more important, return the results from python to my website and display (use) them there. Consider something like this:</p>
  
  <p>Website with an input and button. If you click on the button a python script should run which returns if the input is an odd or even number (of course you dont need python for this specific case, but i want to do that)</p>
  
  <p>From my research i believe Flask is the library to do it (?), but i really dont know how to do it. I found very few examples. I would really appreciate if someone could implement the above example or tell me how to do it exactly.</p>
  
  <p>I know there are already some questions about that concept here online, but as i said, with very few examples.</p>