結果 : how to define a variable in a while loop python