結果 : how to check if the input is string in python