+ 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?

1st Jul 2022, 12:03 AM
Siavash Kardar Tehran
Siavash Kardar Tehran - avatar
6 odpowiedzi
+ 8
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/]↗️ ⠀
1st Jul 2022, 4:03 AM
Sujal
Sujal - avatar
1st Jul 2022, 7:04 AM
Sujal
Sujal - avatar
+ 5
What language is the best for developing the backends of websites and applications? Python or PHP or Node.js or ...?
1st Jul 2022, 9:34 AM
Siavash Kardar Tehran
Siavash Kardar Tehran - avatar
+ 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?
1st Jul 2022, 6:57 AM
Siavash Kardar Tehran
Siavash Kardar Tehran - avatar
+ 1
Yes there is wrappers, more about it here: https://www.bleepingcomputer.com/news/technology/embed-JUMP_LINK__&&__python__&&__JUMP_LINK-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/
1st Jul 2022, 12:05 AM
Leo Hemmingsson
Leo Hemmingsson - avatar
+ 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
1st Jul 2022, 10:49 PM
Leo Hemmingsson
Leo Hemmingsson - avatar