def encipher_substitution(msg, old, new=None):
 return translate(msg, old, new)

def encipher_substitution ( msg , old , new = None ) : return translate ( msg , old , new )
returns the ciphertext obtained by replacing each character that appears in old with the corresponding character in new .