Range Check Python Example Programming