Operators behave differently depending on how I run my sage program. in the notebook:
2^10
==>1024
running my program with sage -python filename.py
:
from sage.all import *
print(2^10)
==> 8
What do I have to import in Python to replicate the behaviour of the Sage notebook?
Edit:
Thanks everyone for the basic Python lessons. DSM answered this question in the comments, turns out sage notebook has a preprocessor.