Run »
txt = "Good night Sam!" mydict = {109: 101, 83: 74, 97: 111, 111: None, 100: None, 110: None, 103: None, 104: None, 116: None} print(txt.translate(mydict))
G i Joe!