[Tutor] get a character of an ascii-value

Hugo González Monteverde hugonz-lists at h-lab.net
Wed Mar 29 09:19:15 CEST 2006

Keo Sophon wrote:
> Hi all,
> I wonder how to get a character of an Ascii-value.  For example, i have r = 
> 37. So i wanna print the character of 37. Is there any function?
Hi ..yeah, it's called chr(), and its opposite is ord()

 >>> ord('r')
 >>> chr(114)


More information about the Tutor mailing list