結果 : how to write loop in python