How To Add A Range Validation Check Python Code