結果 : how to put a range in an if statement python