How can I convert a character to a integer in Python, and viceversa?

Use chr() and ord():

>>> chr(97)
'a'
>>> ord('a')
97

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)