Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

what is ord function on python

# Convert ASCII Unicode Character 'A' to 65
y = ord('A')
print(type(y), y)
 
alphabet_list = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
# Print 65-90
for i in alphabet_list:
    print(ord(i), end = " , ")
Source by www.askpython.com #
 
PREVIOUS NEXT
Tagged: #ord #function #python
ADD COMMENT
Topic
Name
8+3 =