Python 3 Script to Print ASCII Value of Character Using Ord() Method

Python 3 Script to Print ASCII Value of Character Using Ord() Method

Python 3 Script to Print ASCII Value of Character Using Ord() Method

# Python program to print 
# ASCII Value of Character 

# In c we can assign different 
# characters of which we want ASCII value 

c = 'g'
# print the ASCII value of assigned character in c 
print("The ASCII value of '" + c + "' is", ord(c))
Share on:

Hi, I'm Ranjith a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coding Diksha. Here, I post about programming to help developers.

Leave a Comment