Python’s ord() function accepts a single unit of character and returns the equivalent Unicode of the passed argument. In other words, the `ord()` function can take a string or character of length one ...
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 ...
Execução da função f("BRASIL", 3, 10): Iteração 1 (i='B'): r = ord('B') + 10 -> ord('L'); aux = ['L']; arg3 = 11 -> arg3 = 1 Iteração 2 (i='R'): r = ord('R ...