結果 : how to use range in an if statement python