結果 : global name is not defined python function