First time here? Check out the FAQ!
answered 1 year ago
Rename your file from .py to .sage.
Then it will be read with all Sage names active.
In a .py file you need to import things explicitly.