結果 : how to write loop code in python