結果 : how to check if element is string in python