Sep-18-2018, 06:06 PM
idx
is the index of the tuple
t
.You have to define its value before calling
test_tuple()
:For the first position...
# validate args if len(sys.argv)==1: print("# Usage:\t -w <warn> -c <crit>") sys.exit("No argument pass") else: idx = 0 test_tuple(input_value, t, idx)