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.


techstudy.org

HP 15 Core i3 7th gen Laptop(4GB, 1TB HDD, Windows 10) | Rs. 31,490

  1. print()
  2. print(ord('b'))
  3. print(ord('A'))
  4. print(ord('2'))
  5. print(ord('#'))
  6. print()
  7.  

Result

python language techstudy.org

     





Related Topics




Popular Posts