[Solved] Is it possible to use Python scripts in HTML? | Sololearn: Learn to code for FREE!

+6

[Solved] Is it possible to use Python scripts in HTML?

Hello dear Sololearners, I want to know is it possible to use Python scripts in HTML? Also I want to know how can I develope the backend of a website with python?

7/1/2022 12:03:12 AM

Siavash Kardar Tehran

6 Answers

New Answer

+7

1️⃣ Is it possible to use Python scripts in HTML? => Yes It is possible ✔️😊 This is an example code of using python scripts in HTML, you can also apply css on python script 👇 Code : [https://code.sololearn.com/WfF3xuhZEPKI/?ref=app] ⚠️ code takes too long to run For more information ℹ️ about py-script Visit : [https://pyscript.net/]↗️ ------------------------------------------------------------ 2️⃣ How can I develope the backend of a website with python? => Check this site it can help you 👇 Visit : [https://www.freecodecamp.org/news/backend-web-development-with-python-full-course/]↗️ ⠀

+5

Siavash Kardar Tehran Read this post for more information ℹ️ => [https://betterprogramming.pub/running-python-script-on-the-web-using-pyscript-the-next-big-thing-8ace9543d75?gi=53651f14e798] You will get complete information about py script

+5

What language is the best for developing the backends of websites and applications? Python or PHP or Node.js or ...?

+4

Thank you so much Sujal . Why it takes so long to code be run? I mean using python scripts inside a website may slow down the website?

+1

Yes there is wrappers, more about it here: https://www.bleepingcomputer.com/news/technology/embed-python-scripts-in-html-with-pyscript/ But you can not just include it in standard html. If you want to use python in html it is called pyscript, link to their own page here: https://pyscript.net/

+1

Siavash Kardar Tehran I would say that best for backend depends what you want to do. And also how much energy you are willing to spend. I would say that PHP might me one of the better choices because it is well documented and very popular. But then you have really fast alternatives as C that might be a little more pain to write in. Another option for a fast backend is Rust. It's a "new" programming language that does not have the same deep stack overflow history. But rust does have a really good community and very good documentation. But I would guess that what you are looking for is either php or maybe python for the easyness