結果 : how to repeat a section of code in python