結果 : how to detect input in python