結果 : how to validate user input python