plain and coded of equal length. Return True if coded can be produced from plain by such a cipher, and False otherwise.plain="level", coded="rotor" → True
l→r, e→o, v→t: each letter always becomes the same one and different letters become different ones. True.
plain="moon", coded="noon" → False
m→n, but also n→n: two different letters would turn into the same one. False.
plain="ab", coded="aa" → False
plain="level", coded="rotor"
True
Run checks the first 3 tests in your browser. Submit checks all 97 tests on the server, hidden ones included.