結果 : how to make a repeat function in python