I am a beginner in programming and I made a sorting visualizer project in python. As of now I run this program in IDE. I want to put this project on my personal website which I am learning how to build (Javascript for frontend). I do not want to spend time writing the sorting visualizer python program again in JavaScript as I have just started learning JavaScript and it might take much time to write it in JS.
Is there any way in which I can take input from a user on my website in a browser and then pass the input to my python program which performs the tasks and then outputs the result in the browser.