I am trying to create a website that is centered on an algorithm I developed on python. My vision is that the user would enter something and then receive the output which has been generated with python. I am also trying to call a python file because the amount of python code that I need to implement is huge.
For simplicity sake, how would I implement this python file into a website with typing spaces:
math.py
def calc(a, b):
c = a + b
return c
I tried to understand brython and I used their provided example, however it did not work:
index.html
<html>
<script src="https://raw.githack.com/brython-dev/brython/master/www/src/brython.js"></script>
<script src="https://raw.githack.com/brython-dev/brython/master/www/src/brython_stdlib.js"></script>
<body onload="brython()">
<input type="text" id="text" placeholder="Enter anything in mind">
<span id="output"></span>
<script src="C:\ExampleCode\example.py"
type="text/python" id="script1"></script>
</body>
</html