Yup. If hash(x) == hash(y), then some_dict[x] and some_dict[y] will return the same value. The int&#x2F;float is just a convenient red herring on that one, since it&#x27;s an easy way to get two different-looking keys which hash the same, combined with the double red herring of the initial &quot;can&#x27;t index&quot; example being a list (which does require integer values for indexing).