Programming Examples
Python program to find the ASCII Value of entered character
Write a program to input any Character and find its ASCII Value.
Solutionch=input("Enter any Character : ")
ans=ord(ch) # ord is predefined function to find ascii value
print("ASCII Value of ",ch," is : ",ans)
OutputEnter any Character : A
ASCII Value of A is : 65
>>>Â
=========================Â
Enter any Character : a
ASCII Value of a is : 97
>>>Â
=========================Â
Enter any Character : 0
ASCII Value of 0 is : 48
