Threshold Meaning In Python Code