You are here: Home / Topics / Python Program to find the ASCII value of the given character

Python Program to find the ASCII value of the given character

Filed under: Python on 2023-09-17 22:01:45

#!/usr/bin/python
# -*- coding: utf-8 -*-
# Program to find the ASCII value of the given character

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

About Author:
S
Shyam Dubey     View Profile
If you are good in any field. Just share your knowledge with others.