PythiloEasy · 12 min · Task 44 of 100 · progress kept in this browser

Match character patterns

Return whether two strings are isomorphic: each character maps to exactly one character in the other string in both directions. Lengths must match.

forward = {'a': 'x'}
reverse = {'x': 'a'}
print(reverse.get('x') == 'b')  # collision
Your task

Return whether two strings are isomorphic: each character maps to exactly one character in the other string in both directions. Lengths must match.