Range Check Python Example Program