How do I get the ASCII value of a character as an int in Python?
int
To get the ASCII code of a character, you can use the ord() function.
ord()
Here is an example code:
value = input("Your value here: ") list=[ord(ch) for ch in value] print(list)
Output:
Your value here: qwerty [113, 119, 101, 114, 116, 121]