Python Calculator on Number Theory, three-birds-one learning material
...It is freely available and distributed under the BSD license. All programs are written only by Python so that you can easily see their algorithmic number theory. You can get NZMATH with a single command:
% python -m pip install -U nzmath
Here % is the command line prompt of Windows or Unix/macOS.
This release contains several program corrections and additions obtained by writing a programming "notebook" of the book 'Lectures on Elementary Number Theory' (TAKAGI, Teiji) in Python-NZMATH language. The "notebook" is available together. ...
APLEpy stands for Algebraic Programming Language Extension for Python. It is an open source alternative to commercial products such as AMPL and GAMS. It offers the same high level of abstraction while keeping the advantages of using Python environment.