結果 : check if index in dictionary python