O método ord() converte um caractere do tipo char em um valor inteiro, p. exemplo: o caractere 'A', no valor correspondente da Tabela ASCII em decimal 65. O método bin() converte um valor em decimal ...
Return the string representing a character whose Unicode code point is the integer i. For example, chr(97) returns the string 'a', while chr(8364) returns the string '€'. This is the inverse of ord().