+ 1
How to add python code in HTML
I tried <py-script><\py-script> but it does not work It should be able to print
3 Respostas
+ 4
Mikhael
Here is another way on how can you use python in web i.e brython:
https://sololearn.com/compiler-playground/WjOMdoqYBR2q/?ref=app
+ 3
You mean as just plain text or maybe syntax highlighting, or do you mean executable code?
+ 3
To run Python in HTML, use PyScript, but you must include the PyScript library first
for eg:-
https://sololearn.com/compiler-playground/WNG84XHfO0A3/?ref=app