3 ms·
Useless, since based on Python 2. (and this is nowhere indicated) - the user string is interpreted with Sculpt https://github.com/skulpt/skulpt https://github.c
by jackge 6y ago
Useless, since based on Python 2. (and this is nowhere indicated) - the user string is interpreted with Sculpt
https://github.com/skulpt/skulpt https://github.com/skulpt/skulpt:
Skulpt is a Javascript implementation of Python 2.x.
Nothing of this runs on current Python 3.*, providing this kind of tutorials is confucing learners.
- vthommeret 6y agoSkulpt does support the Python 3.7.3 grammar [0], but it's a work in progress. I have it enabled here: https://github.com/vthommeret/mathtocode/blob/0d5f780be4f2187b16faee22d7e6aaa364a75d2d/lib/python.js#L27 https://github.com/vthommeret/mathtocode/blob/0d5f780be4f218... Is there something specific that did work for you? I tried all the examples on Python 3.7.3 and they worked for me. One notable thing that's missing is that the @ operator for matrix multiplication, but I hope to add that in the future. [0] http://skulpt.org http://skulpt.org Python 3 Grammar. The master branch is now building and running using the grammar for Python 3.7.3. There are still lots of things to implement under the hood, but we have made a huge leap forward in Python 3 compatibility. We will still support Python 2 as an option going forward for projects that rely on it.