結果 : variable not accessible in function python