how to find ascii value in python + code example
Example 1: get char from ascii value python
>>> chr(104)
'h'
>>> chr(97)
'a'
>>> chr(94)
'^'
Example 2: ascii values in python of
c = 'p'
print("The ASCII value of '" + c + "' is", ord(c))
>>> chr(104)
'h'
>>> chr(97)
'a'
>>> chr(94)
'^'
c = 'p'
print("The ASCII value of '" + c + "' is", ord(c))