How can I embed python code in html document? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

How can I embed python code in html document?

Python Web

16th Jun 2017, 6:41 AM
Aminu Ibrahim Abubakar
Aminu Ibrahim Abubakar - avatar
6 Answers
+ 9
you can use python flask to have html code inside your python code
16th Jun 2017, 7:11 AM
Ahri Fox
Ahri Fox - avatar
+ 6
@Aminu Ibrahim Abubakar I don't know too much about it, so you may have to look at some YouTube tutorials.
16th Jun 2017, 7:24 AM
Ahri Fox
Ahri Fox - avatar
+ 3
it is the opposite, u can use a library in python to run some html tags, if u really need a logic inside html, my suggest is that u use javascript, it is easier and do a lot of thing "equal"
16th Jun 2017, 6:46 AM
Juliano Ventola
Juliano Ventola - avatar
+ 2
flask is a good python framework for developing server side pages
17th Jun 2017, 8:36 AM
Yeku Wilfred Chetat
Yeku Wilfred Chetat - avatar
+ 1
How can I do it @Ahri Fox
16th Jun 2017, 7:18 AM
Aminu Ibrahim Abubakar
Aminu Ibrahim Abubakar - avatar
+ 1
Ok.. Thanks
16th Jun 2017, 7:25 AM
Aminu Ibrahim Abubakar
Aminu Ibrahim Abubakar - avatar