6 Respostas
+ 11
You can actually do both...
https://code.sololearn.com/Wc0YQZ8s8rcb/?ref=app
https://code.sololearn.com/W7ITsQjn96yK/?ref=app
+ 9
+ 8
if you notice inside the script tag on Brython code there is both JavaScript code and python...
on the second code it is interpreted via JavaScript through the Skulpt framework and the python code is inside the multiple input / textarea tags
+ 4
How Bro Far. Ops
+ 4
Bro what about JavaScript in python
+ 3
You can use a python library called eel, to easily achieve this, learn about eel here
https://github.com/ChrisKnott/Eel