2 Respuestas
+ 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/
+ 2
Ok, thank you sis 👍