Python is a full-featured Python 3 interpreter for the CASIO ClassPad II (fx-CP400), built on the Gint framework and PythonExtra runtime. Write, test, and execute Python scripts directly on your calculator, from simple utilities to interactive games and graphical applications. Break free from BASIC and leverage a modern, expressive language optimized for calculator hardware.
Independent tests demonstrate PythonExtra's efficiency on ClassPad II hardware:
| Test | Official Python (fx-CG50) | PythonExtra (ClassPad II) |
|---|---|---|
| VM Speed (1M passes) | ~12 seconds | 8.9 seconds |
| Shell Output (100K integers) | ~22 seconds | 11.3 seconds |
| Large Integer Operations | ~15 seconds | 8.6 seconds |
Results may vary based on script complexity and system configuration.
Upon launch, you will enter the interactive Python shell. Type commands directly to execute them:
>>> print("Hello, ClassPad!")
>>> 2 + 2
4
>>> import turtle
>>> turtle.forward(50)
To run a saved script:
The included turtle module enables visual programming:
import turtle
t = turtle.Turtle()
for i in range(4):
t.forward(100)
t.right(90)
turtle.done()
This script draws a square on the ClassPad screen. Experiment with colors, angles, and loops to create more complex designs.
The official project wiki provides structured learning paths:
Visit the project page for documentation links and community-contributed examples.
If the interpreter fails to launch, verify that the .hh3 file is placed in the calculator root directory and that Hollyhock-3 is properly installed. If scripts run slowly, review the performance optimization guide in the wiki for tips on reducing memory allocations and simplifying loops. For syntax or runtime errors, use the interactive shell to test code fragments in isolation before integrating them into larger programs.
PythonExtra is built on the Gint framework and the MicroPython/CPython codebases, adapted for the ClassPad II platform by the Hollyhock Team. The project is released under an open source license; consult the repository for specific terms. Third-party modules and example code may carry separate licenses.
For questions, script sharing, or collaboration opportunities, visit the ClassPad development community channels linked from the project page. Contributions to documentation, example projects, and runtime improvements are welcome.