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