def getBytes(msg): return [ord(c) for c in msg] phrase = "My name is Bond, James Bond..." liste = getBytes(phrase) print(phrase) print(liste)