Skip to content

How to write the character from its ascii value in Python?

c='p'
x=ord(c)
#it will give you the ASCII value stored in x
chr(x)
#it will return back the character
See also  How to make a virtual environment in Python?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.