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

+3

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

+5

Brython https://code.sololearn.com/WzWJI1lw02MY/?ref=app

+1

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] https://stackoverflow.com/questions/21913118/run-python-code-using-html5

0

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