How is Python implemented into a webpage | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How is Python implemented into a webpage

Say I want to make a webpage with HTML and CSS but instead of using JavaScript as the programming language for the page, I want to use Python. Is it possible? If it is, how would I implement it?

13th Sep 2021, 9:16 PM
Ethan
Ethan - avatar
3 Answers
+ 3
Python can be used to build server-side web applications. While a web framework is not required to build web apps, it's rare that developers would not use existing open source libraries to speed up their progress in getting their application working. Python is not used in a web browser. The language executed in browsers such as Chrome, Firefox and Internet Explorer is JavaScript. Projects such as pyjs can compile from Python to JavaScript. However, most Python developers write their web applications using a combination of Python and JavaScript. Python is executed on the server side while JavaScript is downloaded to the client and run by the web browser.
14th Sep 2021, 6:13 PM
Arun Jamson
Arun Jamson - avatar
0
I think, not is posible. But you can: from os import system as s print(""" Program HTML """) s("touch file.png") in Python
14th Sep 2021, 5:56 PM
CGO!
CGO! - avatar