結果 : how to repeat the code in python