結果 : python define function inside for loop