How do I add Python code to a "webpage"??? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How do I add Python code to a "webpage"???

Who knows how to add some scripts of Python to a HTML webpage??

11th Nov 2017, 7:48 PM
Isaac Frank
Isaac Frank - avatar
2 Answers
+ 2
You don't. The thing your browser runs is Javascript. You can use pretty much any language in a webserver to create that Javascript dynamically. That includes Python. And some languages can be compiled to Javascript. I'm not sure if Python is one of them.
12th Nov 2017, 3:17 AM
1of3
1of3 - avatar
+ 2
you can't do that on sololearn!
11th Nov 2017, 8:37 PM
᠌᠌Brains[Abidemi]
᠌᠌Brains[Abidemi] - avatar