結果 : variable not defined in function python