結果 : python define functions in a loop