結果 : how to pass a variable out of a function python