Since a couple of days I have a problem with my python code.
In the folder which contains my .sage files creates files with the ending .sage.py
When I do a calculation in python, subtracting one and get the following error:
UnboundLocalError: local variable '_sage_const_1' referenced before assignment
About the line the causes the error, it is simply:
print(len(Q)-1)
Where Q is a list. I run my files in a linux terminal with the command "sage filename", didn't experience this problem before.
Would be really have to work this out or even understand why this happens.