Sage uses the Python programming language, and there is no case statement in Python, instead it is recommended to use if elif elif ..., see: