| 1 | initial version |
I guess you could use raw_input()/input() (depending on Py2 versus Py3). If I understand your question correctly?
BUT you will have to be careful, because the raw input won't be preparsed (although you can ask for it to do that too, I guess). E.g. a file test.sage like this is bad:
a = raw_input()
print a^2
while
a = raw_input()
print Integer(a)^2
does more what one would expect.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.