Laadin ülesannet…
Sometimes text is turned into a numeric code by replacing each letter with its position in the alphabet. Write alphabet_position, which takes a string text and converts every Latin letter to its number: a is 1, b is 2, and so on up to z as 26. Ignore all non-letter characters, and return the numbers as one space-separated string.
"The sunset sets at twelve o' clock.""20 8 5 19 21 14 19 5 20 19 5 20 19 1 20 20 23 5 12 22 5 15 3 12 15 3 11""-.-'""""abc""1 2 3"def alphabet_position(text: str) -> str:
Logi sisse, et näha esituste ajalugu
Logi sisseLogi sisse, et kasutada AI mentorit
Logi sisse"The sunset sets at twelve o' clock.""20 8 5 19 21 14 19 5 20 19 5 20 19 1 20 20 23 5 12 22 5 15 3 12 15 3 11""-.-'""""abc""1 2 3""Z""26""""""'-.-"""