I\'m new to python. Still getting my feet wet. I\'m trying to do something like this:
import sys if ((len(sys.argv) < 3 or < len(sys.argv > 3)):
sys has a function called exit:
sys
exit
sys.exit(1)
is probably what you want. Using 1 tells the program calling your program that there was an error. You should probably consider writing to sys.stderr the reason for the error.
1
sys.stderr