結果 : check if string is a key in dictionary python