Answers for "how to put an ascii text into python"

7

string to ascii value python

>>> s = 'hi'
>>> [ord(c) for c in s]
[104, 105]
Posted by: Guest on June-20-2020
22

python ascii

>>> ord('a')
97
>>> chr(97)
'a'
>>> chr(ord('a') + 3)
'd'
>>>
Posted by: Guest on May-19-2020

Code answers related to "how to put an ascii text into python"

Python Answers by Framework

Browse Popular Code Answers by Language