This site has moved to johanv.xyz!
This page has moved to johanv.xyz/calculator.
This is a calculator that you can run in a terminal. To run it, you need Python 2 or 3.
You can either use argument mode:
$ ./calculator.py '1+1'|
or interpreter mode:
Type help for more info.
In both modes, you can assign variables with either of the following:
And access them like this:
To see more of the features, type help in interpreter mode or run ./calculator.py help [page #].