How can I run my Python Script in a WordPress website that I’m using?

Pretty much the title. I want to run a python script on my WordPress website. It’s a calculator sort of thing and it will help my users calculate ingredients percentage for a recipe. I have already written the python code and it is running successfully.

I just want to know how to integrate this python code onto my website so that I can run the code on my platform and users can input their inputs and get the output.

WordPress only lets me to edit the HTML now and I don’t know how I can fit this python script into the HTML.

Please recommend any methods/plugins on how I can do this.

Thank You 🙂


This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer