Let's say I want to call one of my modules from the command line, for instance I have this find_root(f,xLo , xHi, eps) assignment I've been working on.
I have the header that looks like this:
Wouldn't that be enough that when I go to a terminal screen (Ubuntu) or console (windows) I could simply type:
find_root.py find_root('x**2 - 2, 0, 3, .0001) and it would work? Assuming that my arguments and the function itself is correct. I'm only looking at the command line arguments right now.
Thank you
I have the header that looks like this:
Code:
import sys sys.argv[1,2,3,4]
find_root.py find_root('x**2 - 2, 0, 3, .0001) and it would work? Assuming that my arguments and the function itself is correct. I'm only looking at the command line arguments right now.
Thank you
Comment