Here's a cute follow-up: what are all possible outputs of the following program?<p><pre><code> import random
class C:
def __hash__(self):
# return 0 or 1, with equal probability
return random.randint(0, 1)
x = C()
d = {}
d[x] = "foo"
d[x] = "bar"
d[x] = "baz"
print(len(d), d[x])</code></pre>