Substituir letras pela posição no alfabeto

Crie uma função que recebe uma string e substitui cada letra pela sua posição correspondente no alfabeto. "a" é 1, "b" é 2, "c" é 3, etc., etc.

Exemplos

alphabet_index("Wow, does that work?")
➞ "23 15 23 4 15 5 19 20 8 1 20 23 15 18 11"

alphabet_index("The river stole the gods.")
➞ "20 8 5 18 9 22 5 18 19 20 15 12 5 20 8 5 7 15 4 19"

alphabet_index("We have a lot of rain in June.")
➞ "23 5 8 1 22 5 1 12 15 20 15 6 18 1 9 14 9 14 10 21 14 5"

Observações

  • Se algum caractere da string não for uma letra, ignore-o.
  • Retorne os números como uma string separados por espaços simples.