結果 : how to detect user input in python