結果 : how to repeat the whole code in python