Edit distance
Write edit_distance(a, b) that returns the fewest single-character insertions, deletions
or replacements needed to turn a into b.
edit_distance("horse", "ros") -> 3
edit_distance("intention", "execution") -> 5
edit_distance("", "abc") -> 3
The point is to practise a two-string table with three choices per cell.
def edit_distance(a, b):
...