Python 3 Script to Print All ASCII Values of Characters Using Ord() Method and String Module

Python 3 Script to Print All ASCII Values of Characters Using Ord() Method and String Module

Python 3 Script to Print All ASCII Values of Characters Using Ord() Method and String Module

import string

for i in string.ascii_uppercase:
    print("ASCII value of",i,"is",ord(i))

for i in string.ascii_lowercase:
    print("ASCII value of",i,"is",ord(i))
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