python ascii charcater code example
Example 1: python ascii
>>> ord('a')
97
>>> chr(97)
'a'
>>> chr(ord('a') + 3)
'd'
>>>
Example 2: python convert ascii to char
>>> chr(104)
'h'
>>> chr(97)
'a'
>>> chr(94)
'^'
>>> ord('a')
97
>>> chr(97)
'a'
>>> chr(ord('a') + 3)
'd'
>>>
>>> chr(104)
'h'
>>> chr(97)
'a'
>>> chr(94)
'^'