結果 : how to repeat previous code in python