結果 : how to check if it is a string in python