While super, super barebones you might look into using argparse or click for arg handling. sys.argv totally works but your program will fail for IndexError if you don't supply enough args.
Since this is just exercise, might as well exercise.
Interesting. I had planned to throw some exception handling around it, but it will be nice to learn a more elegant method. Will modify ASAP. Thank you.
While super, super barebones you might look into using
argparse
orclick
for arg handling.sys.argv
totally works but your program will fail for IndexError if you don't supply enough args.Since this is just exercise, might as well exercise.