0

Can i put python3 code in html5? If yes then how?

I am not very good in html cause i'm a learner of it and learning css. But i want to code. So i thought if i could nest my python code in the html codes then i could use python for html. Can anyone suggest me how ?

28th Feb 2019, 7:16 AM
Mahee Nur
1 Resposta
0
I dont know if you know this, but SL allow you to run other languages also which is allowed Python also. If you want run Python inside html (and i dont understan the motivations beside tests purposes) then you have to know something. Web browsers understand only JS at end. For run other languages, a interpreter has to be implemented in JS. For python exist Skulpt and you can see this code for an example on how run it https://code.sololearn.com/WnQZ0B7qvLjF/#html Anyway, take note than its only an emulation of Python, and it has ALWAYS same limitation of JS. Futhermore your code will run much more slowly because emulation in JS is, by nature, slower than plain JS.
28th Feb 2019, 9:03 AM
KrOW
KrOW - avatar