| 1 | initial version |
Your code works for me with SageMath 10.1 (the latest stable version).
Which version of SageMath are you using?
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.