Sage uses the Python programming language, and there is no case
statement in Python, instead it is recommended to use if elif elif ...
, see:
- https://docs.python.org/2.7/tutorial/controlflow.html
- https://www.python.org/dev/peps/pep-3103/ (rejected proposal)