To get ascii value of char in python you can use the code.(Here I did this for the char x)
a = 'x'
print("Your value in ascii'" + a + "' is", ord(a))
And our output will be:
Your value in ascii'x' is 120
you can use this code for any other char to get their ascii values. Happy coding.