I have a Python file, called function.py, which contains this code:
def double(x):
return x * 2
I also have this HTML code:
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<script>
alert(double(4));
</script>
</body>
</html>
Is there a way for me to load the Python file in HTML of JavaScript, or is that impossible?