I am working on a website which will take input and do some calculations and give output. I need to write this calculation code in python. But since this will be used by other users, I want it to be in form of a website so I can deploy it.
Just like we can embed JavaScript code into a html page, can we do the same thing with python?? the code will be very simple, around 5-10 calculations. I know there are ways to do this with Flask or Django, but I was wondering if there was an easier way by just embedding python code in the HTML file.
Would it be better if I just create a Tkinter GUI web-app & turn it into an executable file?
below is the type of code I'll use on the website. Of course, the real code will be a little more complex and longer. But basically ill be asking for input and do calculations with it & then print the output
Example Python code
Length = input(int("Insert the Length"))
Width = input(int("Insert the Width"))
Print("area of this rectangle is: "+ Length * Width)