jspython
jspython copied to clipboard
JSPython is a python-like syntax interpreter implemented with javascript that runs entirely in the web browser and/or in the NodeJS environment.
https://www.jspython.dev/docs/jspython-interpreter consoe is error , should replace console
https://stackoverflow.com/questions/2802726/putting-a-simple-if-then-else-statement-on-one-line
This code doesn't work ``` python x = [1, 2,3,4,5,6] sum = 0 f.forEach(v => sum = sum + v) print(sum) # incorrect sum will be here # workaround is...
``` py a, b, c = 5, 10.32, "Some text" print(a) print(b) print(c) ```