Range Check Python Example For Loop