Check this ask.sagemath question: 
http://ask.sagemath.org/question/2298/getting-user-imput-in-python-scripts

On Thursday, May 30, 2013 10:47:41 AM UTC+8, sea21 wrote:
>
> I would like to write a Sage program in a file, "program.sage" say, then 
> load it using "attach /media/sf_Sage/program.sage". In the program, I would 
> like to prompt the user to key in some inputs from the keyboard and then 
> store it in some variable. Is there any Sage functionality for doing this, 
> something like scanf or getch in C programming?
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to