First time here? Check out the FAQ!
answered 2023-11-21 14:51:30 +0100
Your code works for me with SageMath 10.1 (the latest stable version).
Which version of SageMath are you using?