2 Réponses
+ 4
The simplest way is to use one of the JS libraries which transpile python code to javascript.
You can find examples on the code playground too, if you search for keyword Brython or Skulpt
https://code.sololearn.com/WzWJI1lw02MY/?ref=app
+ 2
Thank you👍🏻🌱 Tibor Santa