結果 : how to write user input to a file in python