Ask Your Question

Riccardo's profile - activity

2018-12-19 11:18:15 +0200 received badge  Student (source)
2018-12-19 11:15:21 +0200 asked a question How to create a "sage program" with command line input

I am completely new to Sage and Pyhton, so this is probably a very trivial question, but I am not able to find any answer. I have a file script.sage


I use this script via sage script.sage and it does what I want. How can I modify this so that I can pass the variable N in the command line? Something like sage script.sage 10 and then it prints the result.

Thank you!