Stack Overflow really isn't designed for general "how do I do this" type questions. It's for more specific "I tried X, expected Y, but got Z instead" type question. But I'll try to help in a general sense.
Python can't run in a web browser. Web browsers can only run HTML and JavaScript. So if you want your program to work in a web browser, you have to use HTML and JavaScript.
You might be able to run your game on a server and then use something like a REST API to trigger the logic from the client, but honestly that's probably overkil. You're probably better off just rewriting your logic in JavaScript.
There are JavaScript implementation that take Python code and convert it into JavaScript commands. Googling "run python in web browser" returns a ton of results. In my experience, those are going to be pretty hit and miss though, and again, your best bet is to rewrite your game in JavaScript.
See also:
Please try to ask more specific questions in the fiture. If you're asking stuff like "How do I do that, and what are it's implications?" then that's a question for Google, not for Stack Overflow. Good luck.