結果 : outside function error in python