Python instead of JavaScript | Sololearn: Learn to code for FREE!


Python instead of JavaScript

Can you use python for web development(with HTML and CSS ) instead of JavaScript??

8/19/2019 8:22:28 AM

Majd Suhail

3 Answers

New Answer




You need to flip that around, you want to run server-side python code that renders your sexy HTML5 GUI. There are many Python frameworks that are suitable to this, including web2py, django, and my personal favorite flask. Any of these frameworks will let your python code run, then render the HTML with python variables/functions available by using a templating engine (for example Flask uses Jinja template). Tutorials are readily available for all of these python libraries, but if you want to take a look at Flask, I can recommend Miguel Grinberg's excellent tutorial series. [1] [1]


Do brython + HTML+css replace python frameworks(ex:Django) Tom Hammerbacher Gordon