結果 : how to write a loop code in python