First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You can start here: https://www.tutorialspoint.com/python/python_command_line_arguments.htm Briefly: N = sys.argv[1] should work.

click to hide/show revision 2
No.2 Revision

You can start here: https://docs.python.org/3/library/sys.html#sys.argv and https://www.tutorialspoint.com/python/python_command_line_arguments.htm Briefly: N = sys.argv[1] should work.