Python Online Compiler
Example: Python program to find the ASCII value of a character
C
C++
C#
Java
Python
PHP
main.py
STDIN
Run
# Python program to find the ASCII value of a character print("Enter a character::") p = str(input()) print("\nASCII value of ", p, " = ", ord(p))
h
Output
Clear
ADVERTISEMENTS