Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

ascci value pyth

# Program to find the ASCII value of the given character

c = 'p'
print("The ASCII value of '" + c + "' is", ord(c))

# and from ascii to character with the function chr()
ascii = ord(c)
print(chr(ascii))
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #ascci #pyth
ADD COMMENT
Topic
Name
6+8 =