+ 4

Python in html?

Can we code python in html? Is it possible on sololearn app?

4th Feb 2023, 11:07 AM
Sakshi [Offline 🙃]
Sakshi [Offline 🙃] - avatar
2 ответов
+ 6
Sakshi You can easily use HTML in python Python Code : import os os.system("touch python.png") print ("""<h1 style="color:red;">Hello World</h1>""") # in this way you can use html, css using style tag or javascript using script tag You can also use Python 🐍 in HTML 1) Using Brython : visit => [https://brython.info/]↗️ 2) Using PyScript : visit => [https://pyscript.net/]↗️ and more.. Python codes directly from frontend web with a JavaScript library called Pyscript. https://code.sololearn.com/W975c25QxC8n/?ref=app https://code.sololearn.com/Wq4uq3d5Jv9U/?ref=app Read more https://pyscript.net/examples/
4th Feb 2023, 11:17 AM
Darpan kesharwani🇮🇳[Inactive📚]
Darpan kesharwani🇮🇳[Inactive📚] - avatar
+ 2
Ok, thank you sis 👍
4th Feb 2023, 11:19 AM
Sakshi [Offline 🙃]
Sakshi [Offline 🙃] - avatar