Lookup in 100000 elements: list 492 µs | set 72 ns
get('plum') = 4 | bucket lengths: [2, 1, 2, 1] (string hash seed is randomized per process startup, so bucket distribution varies)
hash(1) == hash(1.0) == hash(True): True -> treated as the same key in a dict: {1: 'c'}
Lists cannot be dict keys: unhashable type: 'list'
Top 2 word frequencies: [('the', 3), ('and', 2)]
Grouped by length: {3: ['the', 'cat', 'and', 'the', 'hat', 'and', 'the', 'bat']}
Order-preserving deduplication: ['the', 'cat', 'and', 'hat', 'bat']
Verification Log: 12_hash_table.txt
Original companion example or verification log for the tutorial, preserved with user paths redacted; execution scope follows the recorded run.