the first one doesnâ€™t work, says
Output:
File â€śscript.pyâ€ť, line 6
def hash(self, key):
^
IndentationError: unindent does not match any outer indentation level

what am I doing wrong? its just the same as the solution

I think Iâ€™m misunderstanding here. Are you referring to the code that you have on GH? That code doesnâ€™t throw any errors. If the particular lesson you linked to above is throwing an error I suggest copying your code and then resetting the lesson and trying again. Sometimes that works.

With modular hashing, the hash function is simply h(k) = k mod m for some m (usually, the number of buckets). The value k is an integer hash code generated from the key. If m is a power of two (i.e., m=2p), then h(k) is just the p lowest-order bits of 200 thread count k.