Python program to find the ASCII value of a character

#Python program to find the ASCII value of a character
x = input("Enter a character: ")

print ("The ASCII value of '" + x + "' is ", ord(x))


Output:
Enter a character: A
The ASCII value of 'A' is 65




About the Author



Silan Software is one of the India's leading provider of offline & online training for Java, Python, AI (Machine Learning, Deep Learning), Data Science, Software Development & many more emerging Technologies.

We provide Academic Training || Industrial Training || Corporate Training || Internship || Java || Python || AI using Python || Data Science etc






 PreviousNext