how to turn an entire string into ascii characters python code example Example: string to ascii value python >>> s = 'hi' >>> [ord(c) for c in s] [104, 105]