user48377
0
Q:

how to write the character from its ascii value in python

c='p'
x=ord(c)
#it will give you the ASCII value stored in x
chr(x)
#it will return back the character
9
asciiValue=ord(stringCharacter)
#example
asciiValue=ord('A') 
#in this example asciiValue equals 64
7
c = 'p'
print("The ASCII value of '" + c + "' is", ord(c))
2

New to Communities?

Join the community