python program to convert sentence into ascii string code example
Example 1: string to ascii value python
>>> s = 'hi'
>>> [ord(c) for c in s]
[104, 105]
Example 2: python ascii code to string
>>> L = [104, 101, 108, 108, 111, 44, 32, 119, 111, 114, 108, 100]
>>> ''.join(chr(i) for i in L)
'hello, world'