Ask Your Question

Revision history [back]

It's because SageMathCell is now running SageMath 9.0, which is based on Python 3. So you need to replace all Python-2 print statements by the print() function.

Moreover, the deprecation warning is caused by the \d in the following code line:

nL=re.findall("[-+]?[.]?[\d]+(?:,\d\d\d)*[\.]?\d*(?:[eE][-+]?\d+)?", recurrenceEq)

Maybe you should change the string to a raw string, i.e. prefix it by r:

nL=re.findall(r"[-+]?[.]?[\d]+(?:,\d\d\d)*[\.]?\d*(?:[eE][-+]?\d+)?", recurrenceEq)