Explained step by step
Separate chaining handles collisions by changing what each bucket holds: instead of 1 pair, it holds a linked list with every pair that lands there. To look up, you go to the bucket and walk its list comparing keys. To add, you put a node in the list. To delete, you find it in the list and remove it. It's like a building where each apartment can have several tenants listed on the door.
Separate chaining has 2 costs. It uses more memory, because each node stores a reference. And if many keys land in the same bucket, its list grows and looking up there becomes O(n). That's why, when a list gets long, it can be swapped for a balanced tree, which looks up in O(log n). Java does it: when a list reaches 8 nodes and the table has at least 64 buckets, it turns it into a red-black tree.
Open addressing handles collisions without lists: everything stays in the same array. The simplest form is linear probing: if the bucket it landed on is taken, try the next one, and the next, until finding a free one. To look up, you do the same: start at the computed bucket and move 1 at a time until finding the key or an empty bucket, which means the key isn't there.
Linear probing has a problem: it forms clusters. The more adjacent buckets are taken, the more likely a new key lands in that cluster and extends it. That's how long runs form, and looking up or adding in them gets slow. To spread better, there are other ways: quadratic probing jumps 1, 4, 9 spots instead of 1, 2, 3, and double hashing uses a second function to decide how far to jump.
In open addressing you can't delete by emptying the bucket: the lookup stops at the first empty bucket, so keys stored further along the same run would become unreachable. The fix is lazy deletion: instead of emptying, you leave a marker, called a tombstone. Lookups pass over tombstones without stopping, and an insertion can reuse the spot. The cost is that, with many tombstones, lookups get longer.
Each language handles collisions its own way. Python, in its dict, uses open addressing with a probe sequence that jumps in a pseudo-random way. Java uses separate chaining, and since version 8 turns long lists into red-black trees. Go, since version 1.24, uses open addressing with a technique called Swiss Table; before that it used chained buckets of 8 pairs. There's no single right way: each one balances memory and speed.