Range Check Python Example Codes