Write a Python program to Get the ASCII value of a character

Introduction

Write a Python program to Get the ASCII value of a character. I have used python 3.7 compiler for debugging purpose.

print()
print(ord('b'))
print(ord('A'))
print(ord('2'))
print(ord('#'))
print()

Result

Write a Python program to Get the ASCII value of a character
Write a Python program to Get the ASCII value of a character

Leave a Comment