python convert character to digit code example
Example 1: python convert character to integer
>>> chr(97)
'a'
>>> ord('a')
97
>>> int('1')
1
Example 2: python data type conversion
equationStrToInt = '8 * 8'
eval(equationStrToInt)
type(equationStrToInt)
print(equationStrToInt)
strToList = 'GREPPER'
list(strToList)
type(strToList)
print(strToList)