結果 : how to use for loop in if statement python