結果 : function to get user input in python