>>> ord('a')
97
>>> chr(97)
'a'
>>> chr(ord('a') + 3)
'd'
>>>
# ascii function returns an ASCII-only representation of an object that is printabl
print(ascii('A'))
# 'A'
print(ascii('ë'))
# output 'xeb'
print(ascii(['A', 'ë']))
# output ['A', 'xeb']
print(ascii('Aë'))
# output 'Axeb'
#changes non_ascii chars to unicode and vice versa
text = 'Pythön is interesting'
print(ascii(text))
#prints 'Pythxf6n is interesting'
'mystring'.isascii() # true
'mÿstring'.isascii() #false
c = 'p'
print("The ASCII value of '" + c + "' is", ord(c))